~/talk

From Bottlenecks To Breakthroughs: Optimizing Aggregation in OpenSearch for Lightning-Fas...

Talkat OpenSearchCon North America 2025 · 2025-09-08..09-10· [data-engineering]
name:A. Jain
links:none on file
slides:none on file

Original monthly date-histogram that took ~7–8s drops to ~162ms when rewritten as per-month range queries and to ~2s when run serially, achieved by leveraging Lucene’s points/BKD index and a count API; a new multi-range traversal reduces minutely/daily/hourly latencies 2–3x and handles high bucket cardinality; using a skip index plus bitset popcount yields ~3x speedups for filtered aggregations; overall claims include up to 100x improvements for some histograms and contributions merged back into Lucene.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05OpenSearch aggregations
  3. 3:33Bottlenecks discovery
  4. 5:19Default execution flow
  5. 7:29First optimizations
  6. 9:36Lucene's count API
  7. 12:07BKD trees for range queries
  8. 15:16Filter rewrite improvements
  9. 16:23Filter rewrite limits
  10. 17:51Multi-range traversal
  11. 21:11Multi-range limits
  12. 22:13Skip index optimization
  13. 24:21Skip indexes with doc IDs
  14. 26:49Vectorized execution
  15. 27:53Star Tree index
  16. 28:37Q&A
~/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.