~/talk

Constant-Time Aggregations with Star-Tree in OpenSearch

Talkat Berlin Buzzwords 2026 · 2026-06-07..06-09· [databases]
links:none on file
slides:none on file

OpenSearch adds a Star-Tree index that materializes multi‑field aggregates inside segments by extending Lucene DocValues to store sums, counts and sketches, shifting cost from document count to field cardinality and delivering sub‑second analytics on billion‑scale datasets. Benchmarks show up to 1000x faster for low‑cardinality dimensions, a configurable maxLeafDocs space/time tradeoff, and a per‑segment upgrade that converts 181M docs (12.7 GB) in about 6 minutes. Caveats: append‑only (no updates/deletes) and high‑cardinality fields blow up storage.

AI-written summary · about

  1. 0:00Introduction to constant-time aggregations
  2. 1:08Problem with linear aggregation latency
  3. 2:30Limitations of existing solutions
  4. 3:11How star-tree indexes work
  5. 5:16Star-tree index structure explained
  6. 8:55Role of star nodes in queries
  7. 10:40Configuring max leaf docs parameter
  8. 12:05Using star-tree in OpenSearch
  9. 13:10Default vs star-tree query execution
  10. 15:17Star-tree filter types
  11. 17:03Handling boolean queries
  12. 21:18Date histogram queries with star-tree
  13. 23:28Nested aggregation support
  14. 25:33Benchmarking star-tree performance
  15. 28:20Advantages and caveats of star-tree
  16. 30:28Percentile and cardinality aggregations
  17. 33:36Retroactive star-tree upgrade
  18. 35:03Operational lessons and constraints
  19. 37:10Future roadmap for star-tree
  20. 38:13Q&A session
~/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.