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

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.

主站蜘蛛池模板: 陇南市| 株洲县| 赣榆县| 定陶县| 得荣县| 贵阳市| 安西县| 酒泉市| 长沙市| 巴青县| 福鼎市| 濉溪县| 会泽县| 塔河县| 舞阳县| 瓦房店市| 玛曲县| 巩留县| 建平县| 昌都县| 西昌市| 即墨市| 三亚市| 德钦县| 乌拉特中旗| 洛川县| 高碑店市| 松原市| 漠河县| 贵定县| 临潭县| 锡林浩特市| 洞口县| 南澳县| 新竹县| 全椒县| 来凤县| 正安县| 阿巴嘎旗| 吕梁市| 麻阳|