~/talk

Calculating the future how to model PostgreSQL performance

Talkat pgDay Paris 2024 · on Thursday, 2024-03-14· [databases]
links:none on file
slides:none on file

Claims a practical way to predict PostgreSQL index behavior by combining back‑of‑envelope math, an approximate IO model and a tiny simulator. 407 items fit per 8KB leaf page on the example schema and leaf nodes hold ~99% of index space, so space drives IO; page splits create oscillating bloat that converges to ≈20–25% steady‑state bloat. A simple Python I/O model reproduces benchmark IO curves and a state‑machine latency simulator shows that a 10% tail in PQgetbyte inflates mean latency from ~300µs to ~450µs.

AI-written summary · about

  1. 0:00Introduction to predicting PostgreSQL performance
  2. 1:05Why predict PostgreSQL behavior
  3. 3:29Complexity of database tuning analogy
  4. 4:54Simple index behavior experiment
  5. 5:14Back of the envelope calculation for index space
  6. 8:29Index page capacity details
  7. 10:13Understanding index page splits
  8. 10:34Estimating dead tuples and bloat
  9. 12:21Demo of index maintenance effects
  10. 14:53Bloat oscillation pattern analysis
  11. 16:18Advanced I/O estimation model
  12. 17:22Model validation with benchmarks
  13. 19:30Model workflow breakdown
  14. 21:57Challenges of modeling latency
  15. 23:00Latency simulation with state machines
  16. 24:47Key latency insights from simulation
  17. 28:37Takeaways and practical advice
  18. 30:47Combining tools for database understanding
~/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.