~/talk

Tips & Tricks to Keep Your Queries under 100ms with ClickHouse®

Talkat OSA Con 2022 · on Tuesday, 2022-11-15· [databases]
slides:none on file

Claims sustained p99 under 100ms at 100–500 qps on ClickHouse with a 4‑replica cluster holding 177 billion rows and examples querying ~170 million rows. Key levers: minimize scan size (sorting key, low_cardinality, LC4 codec, split columns), reduce algorithmic complexity (filter before group by, lower cardinality before joins, prefer IN over large joins), precompute with materialized views and periodic snapshots, and limit concurrency (set max_threads=1 for many endpoints). Compression and partition choices show two‑order storage differences and large runtime wins.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 2:31Measuring query performance
  3. 5:53Reducing scan size
  4. 9:35Query optimization techniques
  5. 20:50Design principles
  6. 26:28Materialized views
  7. 30:56Architecture and scaling
  8. 36:33Q&A and conclusion
~/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.