官术网_书友最值得收藏!

  • Mastering PostgreSQL 9.6
  • Hans Jurgen Schonig
  • 138字
  • 2021-07-09 19:57:21

GIN indexes

Generalized inverted (GIN) indexes are a good way to index text. Suppose you want to index a million text documents. A certain word may occur millions of times. In a normal B-tree this would mean that the key is stored millions of times. Not so in a GIN. Each key (or word) is stored once and assigned to a document list. Keys are organized in a standard B-tree. Each entry will have a document list pointing to all entries in the table having the same key. A GIN index is very small and compact. However, it lacks an important feature found in B-trees—Sorted data. In a GIN, the list of item pointers associated with a certain key is sorted by the position of the row in the table and not by some arbitrary criteria.

主站蜘蛛池模板: 大同县| 香港| 乌恰县| 金沙县| 洮南市| 康定县| 房产| 洪江市| 敦化市| 乌什县| 若尔盖县| 仪陇县| 辽宁省| 黄梅县| 镇赉县| 阳朔县| 错那县| 晋州市| 马龙县| 丘北县| 钟祥市| 冷水江市| 武宣县| 衡阳市| 贡山| 敦煌市| 肥东县| 崇阳县| 嘉祥县| 芮城县| 武鸣县| 黄骅市| 平遥县| 高邮市| 昌吉市| 渝中区| 沙河市| 宁明县| 金山区| 仙桃市| 青岛市|