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

  • 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.

主站蜘蛛池模板: 泾阳县| 安陆市| 司法| 平度市| 绥棱县| 鄱阳县| 贵定县| 济南市| 沾益县| 杨浦区| 民县| 德江县| 肥乡县| 女性| 庆安县| 太湖县| 衡东县| 武陟县| 景德镇市| 灵宝市| 汉沽区| 沙田区| 外汇| 黄大仙区| 沙田区| 南充市| 崇义县| 辽阳市| 马公市| 习水县| 德清县| 司法| 云龙县| 福鼎市| 云林县| 玛纳斯县| 农安县| 吉隆县| 肇州县| 合山市| 康乐县|