- Mastering PostgreSQL 12
- Hans Jürgen Sch?nig
- 143字
- 2021-08-20 10:00:29
Hash indexes
Hash indexes have been around for many years. The idea is to hash the input value and store it for later lookups. Having hash indexes actually makes sense. However, before PostgreSQL 10.0, it was not advisable to use hash indexes because PostgreSQL had no WAL support for them. In PostgreSQL 10.0, this has changed. Hash indexes are now fully logged and are therefore ready for replication and considered to be 100% crash-safe.
Hash indexes are generally a bit larger than B-tree indexes. Suppose you want to index 4 million integer values. A B-tree will need around 90 MB of storage to do this. A hash index will need around 125 MB on disk. The assumption that's made by many people is that a hash is super small on disk and therefore, in many cases, the assumption can be wrong as well.
- 32位嵌入式系統(tǒng)與SoC設(shè)計導(dǎo)論
- Mastering Spark for Data Science
- 工業(yè)機(jī)器人技術(shù)及應(yīng)用
- R Data Mining
- Google App Inventor
- 系統(tǒng)安裝與重裝
- 大數(shù)據(jù)時代
- Statistics for Data Science
- 多媒體制作與應(yīng)用
- ASP.NET 2.0 Web開發(fā)入門指南
- Dreamweaver+Photoshop+Flash+Fireworks網(wǎng)站建設(shè)與網(wǎng)頁設(shè)計完全實用
- Creating ELearning Games with Unity
- 手把手教你學(xué)Photoshop CS3
- 天才與算法:人腦與AI的數(shù)學(xué)思維
- Learning OpenShift