Compression-Aware LIKE: Matching Patterns in the FSST Domain
Open Access
- 31 May 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-10
Abstract
Database users frequently utilise string data types for general-purpose storage, even when more specialised alternatives are available [18]. Thus, modern analytical database systems rely on lightweight string compression schemes, such as Fast Static Symbol Table (FSST) [2] or OnPair [6], to reduce memory footprint. However, evaluating SQL LIKE predicates on compressed strings typically requires full decompression, negating the benefits of compression. We present an approach that reverses this paradigm: instead of decompressing data to match patterns, we compress the pattern by constructing finite automata that parse FSST-encoded symbol sequences directly. Our technique partitions LIKE patterns into prefixes, suffixes, and substrings, building specialised automata for each, while considering the properties of FSST. We provide interpreted and compiled implementations along with optimisations, including early rejection and SIMD-accelerated self-loop traversal. Evaluation on TPC-H, StackOverflow, and IMDB datasets demonstrates speedups of 2.5–17 × over decompression-based pattern matching, suggesting that co-designing compression schemes and query operators, already successful for integer data, represents a promising direction for string-dominated analytical workloads.Keywords
This publication has 12 references indexed in Scilit:
- Jupiter evolving2022
- Tidy Tuples and Flying Start: fast compilation and fast execution of relational queries in UmbraThe VLDB Journal, 2021
- FSSTProceedings of the VLDB Endowment, 2020
- Get Real2018
- Morsel-driven parallelism2014
- Exascale Computing Trends: Adjusting to the "New Normal"' for Computer ArchitectureComputing in Science & Engineering, 2013
- Two-way string-matchingJournal of the ACM, 1991
- A fast string searching algorithmCommunications of the ACM, 1977
- Fast Pattern Matching in StringsSIAM Journal on Computing, 1977
- Efficient string matchingCommunications of the ACM, 1975