~/talk

Breakout Session

Talkat PGConf Silicon Valley 2015 · 2015-11-17..11-18· [databases]
links:none on file
slides:none on file

Claims an open‑source PostgreSQL extension pg_shard that manages placement distribution and replication of shards and plugs into the regular Postgres toolchain; uses Citus for distributed query planning, JSONB, CloudFormation and PG tooling (pgbench pg_stat_statements pgBadger). Shows a working system used in production (one customer hitting 30,000 inserts/sec and hundreds of GBs per month), explains logical shards and rebalancing, and notes limits such as no cross‑shard transactions.

AI-written summary · about

  1. 0:00Intro
  2. 2:15Horizontal partitioning [...] involves putting different rows into different tables. - Wikipedia, "Shard (database architecture)"
  3. 5:16How does that scale?
  4. 6:08What about load characteristics?
  5. 9:45Logical!
  6. 10:44Operations burden Network resiliency - ACID tradeoffs? - No return
  7. 12:31Pyramids!
  8. 14:251. Generate realistic load 2. Measure, measure, measure... 3. Change one thing 4. Determine the impact 5. GOTO the first step
  9. 18:43Change and Compare
  10. 19:28Denormalize where necessary. Add indexes to all commonly used columns. Locally partition tables if it makes sense. Move hot columns to separate tables.
  11. 28:33Sharding principles
  12. 29:40Pass into hash function (smooths out distribution) – Use contiguous range - Specify a list of columns - Generalize to any expression
  13. 30:17Choosing a key
  14. 30:46the correct shard key can have a great impact on [...] performance [and] capability... - ib., Considerations for Selecting Shard Keys
  15. 31:23What is most important to your application? - Spreading incoming writes – Targeting reads to reduce latency - Consider key frequently in WHERE clauses - Use a hybrid approach when it makes sense (shard on customer, partition on time) Mind the "hot spots"
  16. 41:13Locks enforce safe commutation - Replicas visited in predictable order – Per-session libpq connection pool – If replica errors out, mark as inactive
  17. 48:03Questions
~/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.