~/talk

Write-Buffering to the Database

TalkinRussianat PyCon Belarus 2018 · on Saturday, 2018-02-24· [databases]
links:none on file
slides:none on file

A system replaces frequent per-stage PostgreSQL updates with local Redis buffering to batch-write work: either Redis hashes (one key per stage) or Redis lists (one list per indexing job) collect updates, a periodic Celery worker aggregates them and performs atomic DB updates, and housekeeping removes stale keys. This reduces about four writes per stage to roughly one, raising throughput for millions/tens of millions of indexing tasks, at the cost of eventual consistency, possible key bloat, and rare data loss.

AI-written summary · about

  1. 0:00Introduction
  2. 2:13Database write problems
  3. 6:09Conveyor system overview
  4. 9:21First solution attempt
  5. 10:47Redis as write buffer
  6. 13:47Hash buffering demo
  7. 18:53List buffering demo
  8. 25:01Other use cases
  9. 27:57Performance impact
  10. 31:30Q&A
~/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.