~/talk

Postgres Index types and where to find them

Talkat DjangoCon US 2019 · 2019-09-22..09-27· [databases]
slides:none on file

Demo shows which Postgres index actually matters: B-tree for comparisons, GIN for arrays and full‑text, GiST for overlapping/geometry, BRIN for fast scans of huge, correlated tables. Examples include 31ms → 6ms by adding an index, a partial index shrinking from 13MB to 350KB and speeding queries tenfold, and GIN cutting 160ms → 41ms. Uses Django 2.2’s contrib.postgres indexes and raw CREATE INDEX, with concrete query plans and measured timings.

AI-written summary · about

  1. 0:00Intro
  2. 0:41About me
  3. 2:03Overview
  4. 2:42Crocodile example
  5. 3:19Constraints
  6. 4:00Optimizing queries
  7. 4:41Creating indexes
  8. 5:25Creating unique indexes
  9. 6:00Creating partial indexes
  10. 6:58Why partial indexes are great
  11. 7:42Partial unique indexes
  12. 8:13Create unique index
  13. 9:04Multicolumn indexes
  14. 9:53Reuse multicolumn indexes
  15. 11:14Put most columns first
  16. 12:16Btrees
  17. 13:36Page
  18. 14:03High key
  19. 14:41Items
  20. 15:03Summary
  21. 15:28Btree
  22. 16:05Jin
  23. 17:29Postgres in Django
  24. 18:13Postgres vs Beetree
  25. 19:43Index can
  26. 20:31Gin
  27. 20:59Just Index
  28. 21:32Just Index vs Geometry Index
  29. 23:05Create Just Index
  30. 23:18Array Ranges
  31. 24:22Brain Indexes
  32. 25:09Brain Index
  33. 26:09Deletes
  34. 26:43Conclusion
  35. 27:11Questions
~/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.