~/talk

Beyond the Basics: Mastering PostgreSQL Index Performance

Talkat Incontro DevOps Italia 2026 · 2026-03-19..03-20· [databases]
slides:none on file

Benchmarks show a text btree index costs 2.5 GB and slows inserts sixfold, while an integer primary key index is 214 MB and keeps inserts near baseline; creating a text index cuts a query from 665 ms to 1 ms but rebuilds cost 37 s and block writes; GIN trigram index builds in 2m33s using ~1 GB and can make LIKE/ILIKE slower; vacuum requires two runs to reclaim index pages, and reindex blocks writes for ~37s, so choose index type, column order and memory fit carefully.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:08What is a database index
  3. 8:05PostgreSQL index structure deep dive
  4. 12:47Index bloat causes and effects
  5. 15:18Benchmark environment setup
  6. 18:12Sequential scan vs indexed scan
  7. 20:19Impact of excessive indices
  8. 22:50Redundant and composite indices
  9. 25:45LIKE operator and text indexing
  10. 27:30pg_trgm and advanced indexing
  11. 29:15GiST and GIN index performance
  12. 30:58TOAST and large text fields
  13. 31:42Performance rules and wrap-up
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.