~/talk

Row-Estimation Revelation and the Monolithic Query Syndrome

Talkat PostgresOpen 2014 · 2014-09-17..09-19· [databases, web-performance]
links:none on file
slides:none on file

Claim: planner row counts are often wildly wrong causing wrong join choices and catastrophic slowdowns — row estimates off by orders of magnitude. Evidence: EXPLAIN ANALYZE and pgBadger show nested loops chosen where hash/merge are appropriate and 47‑minute queries drop to seconds after remediation. Tools and fix: generate the problematic subset into a temp table + ANALYZE so the planner gets exact row counts, or refactor monolithic SQL into staged steps; mention of Tom Lane’s advice about schema/statistics limits.

AI-written summary · about

  1. 0:00Start
  2. 9:40Generic Types of Joins of Postgres
  3. 9:53Nested Loop
  4. 11:58Breakthrough
  5. 23:01Temp Tables
  6. 28:40Downsides to Temp Tables
~/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.