~/talk

Top 5 PostgreSQL Query Tuning Tips

Talkat Postgres Conference Orlando 2025 · 2025-03-18..03-21· [databases]
links:none on file
slides:none on file

Five concrete steps: monitor wait time at the statement level to spot IO or locking hotspots; run EXPLAIN ANALYZE and read actual rows/loops to find expensive steps (hash joins, sorts, full scans); inspect table sizes, stats and indexes; find the driving table by comparing filter selectivity and add left‑leading or composite indexes; use covering indexes and proper constraints. Case studies show a join query dropping from ~45 ms to 0.5 ms and a star‑schema report from ~2 s to 1.8 ms after these changes.

AI-written summary · about

  1. 0:00PostgreSQL query tuning intro
  2. 1:04Monitor wait time
  3. 3:49Explain plans with execution data
  4. 10:30Analyze execution plan objects
  5. 12:40Find driving table
  6. 20:12Billing query optimization case
  7. 23:45Final tips & Q&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.