~/talk

SQL Execution Internals – From Database to OS and Hardware Levels

Talkat Distributed SQL Summit 2022 · on Wednesday, 2022-09-14· [databases]
links:none on file
slides:none on file

Workshop shows a reproducible methodology using YB stats snapshots and OS metrics to locate latency: a SELECT over 1M rows measures 12.3 s end-to-end, with tablet-server reads ~11.2 s and physical IO accounting for ~58% of that; RocksDB reports RocksDB SSD read micros with ~0.3 ms per SSD read, then OS page cache drops reads to microseconds on re-run. First backend bootstrap hits master and costs ~200 ms vs ~20 ms typical logon. Uses PG gate and tablet-service traces to separate parse/plan/execute, local vs remote dispatch, and aggregate pushdown (SELECT COUNT() ~1.5 s).

AI-written summary · about

  1. 0:00SQL execution internals
  2. 3:20SQL tuning importance
  3. 5:25YB stats introduction
  4. 9:39Using YB stats
  5. 13:10YugabyteDB cluster architecture
  6. 22:53SQL connection backend
  7. 39:59Postgres query phases
  8. 47:54YSQL and PG gate layers
  9. 55:02Query execution with YB stats
  10. 1:09:28RocksDB and storage
  11. 1:22:24OS caching and I/O
  12. 1:30:31Parallel query execution
  13. 1:35:38Key takeaways
  14. 1:46:23Q&A on indexes
~/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.