~/talk

Applications of Tries in Apache Cassandra

Talkat Berlin Buzzwords 2024 · 2024-06-09..06-11· [databases]
slides:none on file

Apache Cassandra replaces comparison-based memtables and SSTable indexes with tries and reports concrete wins: about 2x faster random SSTable reads and over 2x sustained memtable write throughput after switching formats (DataStax first, upstream in Apache Cassandra 5). Implementation uses byte-comparable serialization for all column types, chain nodes, variable pointer sizes, page-packed immutable tries with unique-prefix indexes plus small hash bits to avoid disk lookups, 32-byte block nodes with pointer tagging, and removes the special key cache while reducing GC pauses and heap footprint.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:45Problem of key-based data organization
  3. 7:03Why tries outperform comparison-based structures
  4. 10:55Academic research enabling tries in databases
  5. 12:00Making keys byte-ordered for tries
  6. 14:52Adapting tries for Cassandra's storage model
  7. 17:21Optimizing tries for disk efficiency
  8. 21:15Page packing in immutable tries
  9. 24:49Performance gains in SS table indexing
  10. 25:55Optimizing memory tables with fixed blocks
  11. 29:05Memory efficiency with pointer tagging
  12. 30:56Comparison of B-trees and improved tries
  13. 31:17Benchmarking memory table improvements
  14. 32:40Future plans for merge components
  15. 33:43Regex and advanced query support
  16. 34:27Q&A on Bloom filters and tradeoffs
~/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.