~/talk

Understanding of Jsonb Performance

Talkat PGConf NYC 2021 · 2021-12-02..12-03· [databases, web-performance]
links:none on file
slides:none on file

Benchmarks show Jsonb cost depends on size, nesting and storage layout not just “it's JSON”; tests across 1 to 1,000,000 rows and concurrent writers reveal extraction and subscripting are cheap on small root fields but degrade as nesting grows, and 2 KB page threshold causes on‑access decompression and big jumps in latency (examples around 500+ ms read spikes). Operator timings favor exists/contains fastest while match and deep path access cost much more; TOAST, chunking, pageinspect and a streaming extension are used to measure and mitigate real update and read slowdowns.

AI-written summary · about

  1. 0:00JSONB performance challenges
  2. 5:02JSONB popularity in PostgreSQL
  3. 9:35Nested JSON performance impact
  4. 15:54Extract vs subscripting in JSONB
  5. 20:12JSONB operators comparison
  6. 25:19TOAST compression for large JSON
  7. 31:39TOAST partial update pitfalls
  8. 36:02JSONB sorting and access patterns
  9. 40:53JSON format conversion costs
  10. 43:17Relational vs JSONB optimization
  11. 46:52Updating JSON arrays efficiently
  12. 47:48Streaming JSON with TOAST
  13. 50:05Community benchmarks
~/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.