Cuttlefish: A Lightweight Primitive for Adaptive Query Processing
Not on the map. Why?
Abstract (arXiv)
Modern data processing applications execute increasingly sophisticated analysis that requires operations beyond traditional relational algebra. As a result, operators in query plans grow in diversity and complexity. Designing query optimizer rules and cost models to choose physical operators for all of these novel logical operators is impractical. To address this challenge, we develop Cuttlefish, a new primitive for adaptively processing online query plans that explores candidate physical operator instances during query execution and exploits the fastest ones using multi-armed bandit reinforcement learning techniques. We prototype Cuttlefish in Apache Spark and adaptively choose operators for image convolution, regular expression matching, and relational joins. Our experiments show Cuttlefish-based adaptive convolution and regular expression operators can reach 72-99% of the throughput of an all-knowing oracle that always selects the optimal algorithm, even when individual physical operators are up to 105x slower than the optimal. Additionally, Cuttlefish achieves join throughput improvements of up to 7.5x compared with Spark SQL's query optimizer.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Feb 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 0; 2024: 0; 2025: 2; 2026: 1.
4 papers.
- 2021No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guaranteescited by 4
- 2025Supporting Dynamic Agentic Workloads: How Data and Agents Interactcited by 2
- 2025Implementing Semantic Join Operators Efficientlycited by 1
- 2026Piece of CAKE: Adaptive Execution Engines via Microsecond-Scale Learningcited by 0
- 2026Piece of CAKE: Adaptive Execution Engines via Microsecond-Scale Learning4 Feb 2026
- 2025Supporting Dynamic Agentic Workloads: How Data and Agents Interact10 Dec 2025
- 2025Implementing Semantic Join Operators Efficiently9 Oct 2025
- 2021No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guarantees23 Aug 2021