~/talk

Advanced Indexing Techniques in PostgreSQL

slides:none on file

Covers concrete index types (B‑Tree/B+ tree, hash = O(1), BRIN, GIN, GiST) and when each actually speeds queries; shows BRIN suits append‑only time‑series, GIN suits JSONB/arrays, GiST suits geospatial and vector data (PGVector). Builds a custom composite type plus operator/class so B‑Tree can order that type. Benchmarks: a SELECT runs ~9–10s, a rewritten query ~5s, with an index ~500ms; a customer drops ~37 JSONB B‑Tree indexes and replaced 37 B-tree indexes with one GIN to fix terabyte‑scale slowness. Emphasizes index maintenance cost, vacuum and up‑to‑date stats.

AI-written summary · about

  1. 0:00Advanced indexing intro
  2. 3:55Why indexes boost performance
  3. 11:45PostgreSQL index types overview
  4. 26:35Indexing demo without indexes
  5. 32:14B-tree internals
  6. 43:10Custom types and indexing
  7. 46:42Index health monitoring
  8. 47:04Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.