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

  • Mastering PostgreSQL 12
  • Hans Jürgen Sch?nig
  • 145字
  • 2021-08-20 10:00:30

GIN indexes

Generalized inverted (GIN) indexes are a good way to index text. Suppose you want to index 1 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. This is not the case 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 the entries in the table that have the same key. A GIN index is very small and compact. However, it lacks an important feature that's 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.

主站蜘蛛池模板: 手游| 东丽区| 深圳市| 万荣县| 玉环县| 高要市| 治多县| 石渠县| 屯昌县| 新邵县| 翼城县| 吴忠市| 永顺县| 淮南市| 祥云县| 武汉市| 双辽市| 汉源县| 沙坪坝区| 南宫市| 三门峡市| 古交市| 金寨县| 图们市| 静安区| 双江| 宜兰县| 镇坪县| 左云县| 夏河县| 三台县| 沙雅县| 宣城市| 万宁市| 福安市| 兴隆县| 黔东| 唐山市| 个旧市| 古田县| 金平|