Include GiST index type in query index types documentation (#33)

Added GiST index type for geometric data and nearest-neighbor queries.
This commit is contained in:
Dev-iL
2026-02-09 19:10:16 +02:00
committed by GitHub
parent dfd956df58
commit 0d88c8a3e4

View File

@@ -2,7 +2,7 @@
title: Choose the Right Index Type for Your Data
impact: HIGH
impactDescription: 10-100x improvement with correct index type
tags: indexes, btree, gin, brin, hash, index-types
tags: indexes, btree, gin, gist, brin, hash, index-types
---
## Choose the Right Index Type for Your Data
@@ -35,6 +35,9 @@ create index users_created_idx on users (created_at);
-- GIN: arrays, JSONB, full-text search
create index posts_tags_idx on posts using gin (tags);
-- GiST: geometric data, range types, nearest-neighbor (KNN) queries
create index locations_idx on places using gist (location);
-- BRIN: large time-series tables (10-100x smaller)
create index events_time_idx on events using brin (created_at);