~/talk

A Quantitive Look at Partitions

Talkat PostgresOpen 2014 · 2014-09-17..09-19· [databases]
linkedin:jmelesky
slides:none on file

Benchmarks use EC2 and RDS to measure insert and read cost for monolithic tables, partial indexes, and various partitioning strategies with 50,000 partitions (and a failed run at 100,000). Insert throughput shows hump patterns: indexed monolith slows with size, case/if triggers start fast then degrade, dynamic EXECUTE is consistently slower; partial indexes and application-level routing change tradeoffs. Explain/planning time grows roughly linearly with number of child tables, reads collapse somewhere between hundreds and thousands of partitions, and there is a 65,535 hard limit in the planner; triggers vs dynamic insertion that creates partitions on demand proves too slow.

AI-written summary · about

  1. 0:00Introduction
  2. 3:28C vs PG
  3. 4:38Description
  4. 5:48Insert Times
  5. 7:59Partial Index
  6. 9:08Partition Triggered
  7. 12:27Partition Triggers
  8. 19:31String Concatenation
  9. 25:33Table Scan
  10. 27:55Reads
  11. 29:07Planning Time
  12. 32:58What Happened
  13. 38:56Conventional Wisdom
  14. 40:18Complex Joins
  15. 42:11Schema
  16. 43:01Nesting partitions
  17. 45:26Constraint exclusion
  18. 46:16Out of pocket
~/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.