Lune

SIGMOD2023Top-tier venue

T-Rex: Optimizing Pattern Search on Time Series

Silu Huang, Erkang Zhu, Surajit Chaudhuri, Leonhard Spiegelberg

Abstract

Pattern search is an important class of queries for time series data. Time series patterns often match variable-length segments with a large search space, thereby posing a significant performance challenge. The existing pattern search systems, for example, SQL query engines supporting MATCH_RECOGNIZE, are ineffective in pruning the large search space of variable-length segments. In many cases, the issue is due to the use of a restrictive query language modeled on time series points and a computational model that limits search space pruning. We built T-ReX to address this problem using two main building blocks: first, a MATCH_RECOGNIZE language extension that exposes the notion of segment variable and adds new operators, lending itself to better optimization; second, an executor capable of pruning the search space of matches and minimizing total query time using an optimizer. We conducted experiments using 5 real-world datasets and 11 query templates, including those from existing works. T-ReX outperformed an optimized NFA-based pattern search executor by 6x in median query time and an optimized tree-based executor by 19X.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

its abstract · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. SHARP: Shared State Reduction for Efficient Matching of Sequential PatternsCong Yu, Tuo Shi, Matthias Weidlich, Bo ZhaoVLDB 2026
  2. Dataset Discovery via Line ChartsDaomin Ji, Hui Luo, Zhifeng Bao, J. Shane CulpepperICDE 2025

Related papers

  1. ShapeSearch: A Flexible and Efficient System for Shape-based Exploration of TrendlinesTarique Siddiqui, Paul Luh, Zesheng Wang, Karrie Karahalios et al.SIGMOD 2020 · 35 citations
  2. High-Performance Row Pattern Recognition Using JoinsErkang Zhu, Silu Huang, Surajit ChaudhuriVLDB 2023 · 11 citations
  3. Index-Accelerated Pattern Matching in Event StoresMichael Körber, Nikolaus Glombiewski, Bernhard SeegerSIGMOD 2021 · 9 citations
  4. Gloria: Graph-based Sharing Optimizer for Event Trend AggregationLei Ma, Chuan Lei, Olga Poppe, Elke A. RundensteinerSIGMOD 2022 · 5 citations
  5. SuSe: Summary Selection for Regular Expression Subsequence Aggregation over StreamsSteven Purtzel, Matthias WeidlichSIGMOD 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines