SkinnerDB: Regret-Bounded Query Evaluation via Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
SkinnerDB is designed from the ground up for reliable join ordering. It maintains no data statistics and uses no cost or cardinality models. Instead, it uses reinforcement learning to learn optimal join orders on the fly, during the execution of the current query. To that purpose, we divide the execution of a query into many small time slices. Different join orders are tried in different time slices. We merge result tuples generated according to different join orders until a complete result is obtained. By measuring execution progress per time slice, we identify promising join orders as execution proceeds. Along with SkinnerDB, we introduce a new quality criterion for query execution strategies. We compare expected execution cost against execution cost for an optimal join order. SkinnerDB features multiple execution strategies that are optimized for that criterion. Some of them can be executed on top of existing database systems. For maximal performance, we introduce a customized execution engine, facilitating fast join order switching via specialized multi-way join algorithms and tuple representations. We experimentally compare SkinnerDB's performance against various baselines, including MonetDB, Postgres, and adaptive processing methods. We consider various benchmarks, including the join order benchmark and TPC-H variants with user-defined functions. Overall, the overheads of reliable join ordering are negligible compared to the performance impact of the occasional, catastrophic join order choice.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). First posted on arXiv 16 Jan 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 4; 2023: 3; 2024: 0; 2025: 2; 2026: 2.
17 papers.
Sort:
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2021DB-BERT: a Database Tuning Tool that "Reads the Manual"cited by 19
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumerationcited by 14
- 2021A Survey on Deep Reinforcement Learning for Data Processing and Analyticscited by 10
- 2022CodexDB: Generating Code for Processing SQL Queries using GPT-3 Codexcited by 5
- 2021No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guaranteescited by 4
- 2021A Reinforcement Learning Based R-Tree for Spatial Data Indexing in Dynamic Environmentscited by 2
- 2021Can Deep Neural Networks Predict Data Correlations from Column Names?cited by 2
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challengescited by 2
- 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learningcited by 1
- 2025Implementing Semantic Join Operators Efficientlycited by 1
5 more
- 2026Larch: Learned Query Optimization for Semantic Predicatescited by 1
- 2022Multi-agent Databases via Independent Learningcited by 0
- 2022Learning-Based Data Storage [Vision] (Technical Report)cited by 0
- 2025Selective Use of Yannakakis' Algorithm to Improve Query Performance: Machine Learning to the Rescuecited by 0
- 2026Piece of CAKE: Adaptive Execution Engines via Microsecond-Scale Learningcited by 0
- 2026Larch: Learned Query Optimization for Semantic Predicates6 Jun 2026
- 2026Piece of CAKE: Adaptive Execution Engines via Microsecond-Scale Learning4 Feb 2026
- 2025Implementing Semantic Join Operators Efficiently9 Oct 2025
- 2025Selective Use of Yannakakis' Algorithm to Improve Query Performance: Machine Learning to the Rescue27 Feb 2025
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challenges25 Aug 2023
- 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learning21 Jul 2023
- 2023Lero: A Learning-to-Rank Query Optimizer14 Feb 2023
- 2022Learning-Based Data Storage [Vision] (Technical Report)12 Jun 2022
- 2022Multi-agent Databases via Independent Learning28 May 2022
- 2022CodexDB: Generating Code for Processing SQL Queries using GPT-3 Codex19 Apr 2022
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrations5 Jan 2022
- 2021DB-BERT: a Database Tuning Tool that "Reads the Manual"21 Dec 2021
5 more
- 2021No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guarantees23 Aug 2021
- 2021A Survey on Deep Reinforcement Learning for Data Processing and Analytics10 Aug 2021
- 2021Can Deep Neural Networks Predict Data Correlations from Column Names?9 Jul 2021
- 2021A Reinforcement Learning Based R-Tree for Spatial Data Indexing in Dynamic Environments8 Mar 2021
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumeration5 Jan 2021
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2021DB-BERT: a Database Tuning Tool that "Reads the Manual"cited by 19
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
- 2021A Survey on Advancing the DBMS Query Optimizer: Cardinality Estimation, Cost Model, and Plan Enumerationcited by 14
- 2021A Survey on Deep Reinforcement Learning for Data Processing and Analyticscited by 10
- 2022CodexDB: Generating Code for Processing SQL Queries using GPT-3 Codexcited by 5
- 2021No DBA? No regret! Multi-armed bandits for index tuning of analytical and HTAP workloads with provable guaranteescited by 4
- 2021A Reinforcement Learning Based R-Tree for Spatial Data Indexing in Dynamic Environmentscited by 2
- 2021Can Deep Neural Networks Predict Data Correlations from Column Names?cited by 2
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challengescited by 2
- 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learningcited by 1
- 2025Implementing Semantic Join Operators Efficientlycited by 1
12 most cited of 17 All 17 (JSON)
- 2026Larch: Learned Query Optimization for Semantic Predicates6 Jun 2026
- 2026Piece of CAKE: Adaptive Execution Engines via Microsecond-Scale Learning4 Feb 2026
- 2025Implementing Semantic Join Operators Efficiently9 Oct 2025
- 2025Selective Use of Yannakakis' Algorithm to Improve Query Performance: Machine Learning to the Rescue27 Feb 2025
- 2023ML-Powered Index Tuning: An Overview of Recent Progress and Open Challenges25 Aug 2023
- 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learning21 Jul 2023
- 2023Lero: A Learning-to-Rank Query Optimizer14 Feb 2023
- 2022Learning-Based Data Storage [Vision] (Technical Report)12 Jun 2022
- 2022Multi-agent Databases via Independent Learning28 May 2022
- 2022CodexDB: Generating Code for Processing SQL Queries using GPT-3 Codex19 Apr 2022
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrations5 Jan 2022
- 2021DB-BERT: a Database Tuning Tool that "Reads the Manual"21 Dec 2021
12 newest of 17 All 17 (JSON)