~/talk

DIY: database index

Talkat PGCon 2020 · 2020-05-26..05-29· [databases]
links:none on file
slides:none on file

Yandex runs over two petabytes of Postgres and ~3M requests/sec; this demo shows how to extract GiST to extension by copying GiST code, compiling, installing, creating a cube-backed index, inserting ~1k rows and observing the new index serve queries. It explains required hooks: index handler, input/output, vacuum contract, and why you must use generic WAL for replica replay. It surveys ideas that actually change performance: interpolation search for monotonic keys, cache prefetch and layout tweaks, learned-index tradeoffs, and risks around crash, WAL replay, and vacuum.

AI-written summary · about

  1. 0:00Introduction to DIY database index
  2. 1:16What is an access method
  3. 3:03Types of access methods
  4. 5:57Why create custom access methods
  5. 9:04Motivation and learning benefits
  6. 12:38Implementing index as extension
  7. 17:08Demo: Forking GiST extension
  8. 20:14Write-ahead logging for extensions
  9. 23:09Vacuum and index contracts
  10. 24:54Query data types for complex searches
  11. 26:19Ideas for custom index extensions
  12. 27:25Learned indexes and adaptations
  13. 28:51Specialized B-tree optimizations
  14. 31:46Improving binary search in B-tree
  15. 33:36Forking B-tree challenges
  16. 35:27Conclusion and next steps
~/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.