~/talk

Multi tenant database the good, the bad, the ugly

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

Examines real-world tradeoffs: a single-instance multi-tenant deployment reaches 24,000 tables and ~1M indexes and shows why tenant_id columns break planner statistics and bloat indexes; row-level security proved fragile and slow when retrofitted; one-database-per-tenant works but hits connection scaling, solved only by pgBouncer and sharding at thousands of tenants; a schema-per-tenant approach suffers from search_path normalization and makes pg_stat_statements hit memory limits; backups and restores fail at scale until pgbackrest repo-bundle reduces millions of small files.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:03Production database scale horror
  3. 2:10What is multi-tenant system
  4. 3:34Implementing multi-tenancy wrong
  5. 5:00PostgreSQL extensions for multi-tenancy
  6. 7:53Monitoring tools limitations
  7. 10:28Row-level security disaster story
  8. 12:59One database per tenant approach
  9. 15:13Connection pooling challenges
  10. 16:38PG Stat Statements failure
  11. 19:10Logical replication pain
  12. 21:00One schema per tenant method
  13. 23:32Backup tools breakdown
  14. 26:02Backup restoration failures
  15. 28:57PG Stat Statements schema issues
  16. 31:05Connection pooling inefficiencies
  17. 32:11Monitoring multi-tenant chaos
  18. 36:08Summary of pitfalls
  19. 37:57Testing before committing
  20. 38:37Q&A session
~/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.