Index-Accelerated Pattern Matching in Event Stores
Michael Körber, Nikolaus Glombiewski, Bernhard Seeger
Abstract
IoT applications require a new type of database systems termed event stores for ingesting fast arriving event streams and efficiently supporting analytical ad-hoc queries over time. One of the most important operations in this regard is sequential pattern matching also known as Match_Recognize, which matches user defined predicates to subsequences of events. While Match_Recognize is well known in the field of event processing, it has only recently become part of the SQL standard. Despite of that, Match_Recognize has received little attention in the database area so far. We present a novel approach to speed up an important class of Match_Recognize queries on event stores by utilizing off-the-shelf secondary indexes on non-temporal attributes (e.g., B-trees, LSM-trees) and a cost model for selecting the most appropriate indexes. Our approach keeps temporal and sequential information in secondary indexes to prune large parts of the stream from further processing. However, simply using as many secondary indexes as available is not the right choice because the access cost for the index scans can exceed the processing time of the naï ve approach that scans the entire stream and replays it into an event processing system. In order to address this problem, we present a first cost model to estimate the total execution cost of a Match_Recognize query for a set of available indexes. Based on this cost model, we devise an efficient index selection strategy that avoids a full enumeration of index configurations. Prototypical implementations of our approach are available in our open-source research prototype, a commercial database system, and Apache Flink. In experiments with synthetic and real-world data sets, all our index-based implementations clearly outperform the naï ve replay strategy that is currently offered in commercial database systems and Flink.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get e6bd6df8-c544-4660-bca8-2e673c85f264Cited by top-tier papers5
- High-Performance Row Pattern Recognition Using JoinsErkang Zhu, Silu Huang, Surajit ChaudhuriVLDB 2023 · 11 citations
- Complex Event Recognition with Symbolic Register TransducersElias Alevizos, Alexander Artikis, Georgios PaliourasVLDB 2024 · 6 citations
- ACER: Accelerating Complex Event Recognition via Two-Phase Filtering under Range Bitmap-Based IndexesShizhe Liu, Haipeng Dai, Shaoxu Song, Meng Li et al.KDD 2024 · 2 citations
- SIDLE: Tree-structure Aware Indexes for CXL-based Heterogeneous MemoryHaoru Zhao, Mingkai Dong, Fangnuo Wu, Haibo ChenVLDB 2026 · 1 citation
- SHARP: Shared State Reduction for Efficient Matching of Sequential PatternsCong Yu, Tuo Shi, Matthias Weidlich, Bo ZhaoVLDB 2026
Related papers
- DISCES: Systematic Discovery of Event Stream QueriesRebecca Sattler, Sarah Kleest-Meißner, Steven Lange, Markus L. Schmid et al.SIGMOD 2025 · 3 citations
- T-Rex: Optimizing Pattern Search on Time SeriesSilu Huang, Erkang Zhu, Surajit Chaudhuri, Leonhard SpiegelbergSIGMOD 2023 · 16 citations
- An Efficient Algorithm for Continuous Complex Event Matching Using Bit-ParallelismTao Qiu, Shenwang Jiang, Xiaochun Yang, Bin Wang et al.ICDE 2024 · 5 citations
- DecoPa: Query Decomposition for Parallel Complex Event ProcessingSamira Akili, Steven Purtzel, Matthias WeidlichSIGMOD 2024 · 8 citations
- When Complex Event Recognition Meets Cloud-Native ArchitecturesShizhe Liu, Haipeng Dai, Meng Li, Yuemeng Zhang et al.ICDE 2026 · 1 citation
