~/talk

Five Sharding Data Models and Which is Right

Talkat RailsConf 2018 · 2018-04-17..04-19· [databases]
slides:none on file

Claims that sharding is the proven way to scale Postgres, with Citus used to turn Postgres into a sharded distributed DB and examples from Instagram Google and Salesforce; recommends hash vs range with practical shard counts like 128 256 shards and explains how to move shards between nodes, use pg_partman with Postgres 10, and expect Postgres 11 improvements. Notes concrete tactics: add tenant_id on every table, use composite keys, consider HyperLogLog/top‑n for distributed aggregates, and promises up to ~100x gains for parallelizable workloads.

AI-written summary · about

  1. 0:00Intro
  2. 1:23What is sharding
  3. 3:362 Nodes - 32 shards
  4. 4:39Five models
  5. 5:40Hash - The steps
  6. 7:56Create range of hash values
  7. 9:00Range - The steps
  8. 10:23Shard by Geography
  9. 13:56Real world application
  10. 14:48Sharding by tenant
  11. 15:45Common use cases
  12. 16:12Guidelines for multi-tenant sharding
  13. 21:34Key considerations
  14. 22:24Map reduce examples
  15. 23:58When you use a graph database
  16. 24:11Very different approach
  17. 30:15Sensor data - inserting
  18. 31:04Time series tips
~/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.