Lune

SIGMOD2020顶会

Bitvector-aware Query Optimization for Decision Support Queries

Bailu Ding, Surajit Chaudhuri, Vivek R. Narasayya

摘要

Bitvector filtering is an important query processing technique that can significantly reduce the cost of execution, especially for complex decision support queries with multiple joins. Despite its wide application, however, its implication to query optimization is not well understood.

In this work, we study how bitvector filters impact query optimization. We show that incorporating bitvector filters into query optimization straightforwardly can increase the plan space complexity by an exponential factor in the number of relations in the query. We analyze the plans with bitvector filters for star and snowflake queries in the plan space of right deep trees without cross products. Surprisingly, with some simplifying assumptions, we prove that, the plan of the minimal cost with bitvector filters can be found from a linear number of plans in the number of relations in the query. This greatly reduces the plan space complexity for such queries from exponential to linear.

Motivated by our analysis, we propose an algorithm that accounts for the impact of bitvector filters in query optimization. Our algorithm optimizes the join order for an arbitrary decision support query by choosing from a linear number of candidate plans in the number of relations in the query. We implement our algorithm in Microsoft SQL Server as a transformation rule. Our evaluation on both industry standard benchmarks and customer workload shows that, compared with the original Microsoft SQL Server, our technique reduces the total CPU execution time by 22%-64% for the workloads, with up to two orders of magnitude reduction in CPU execution time for individual queries.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Analyzing the Impact of Cardinality Estimation on Execution Plans in Microsoft SQL Server 引用了 DSB: A Decision Support Benchmark for Workload-Driven and Traditional Database Systems
  • POLAR: Adaptive and Non-invasive Join Order Selection via Plans of Least Resistance 引用了 Analyzing the Impact of Cardinality Estimation on Execution Plans in Microsoft SQL Server
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  1. DSB: A Decision Support Benchmark for Workload-Driven and Traditional Database SystemsBailu Ding, Surajit Chaudhuri, Johannes Gehrke, Vivek R. NarasayyaVLDB 2021 · 62 次引用
  2. Analyzing the Impact of Cardinality Estimation on Execution Plans in Microsoft SQL ServerKukjin Lee, Anshuman Dutt, Vivek R. Narasayya, Surajit ChaudhuriVLDB 2023 · 26 次引用
  3. Simple Adaptive Query Processing vs. Learned Query Optimizers: Observations and AnalysisYunjia Zhang, Yannis Chronis, Jignesh M. Patel, Theodoros RekatsinasVLDB 2023 · 20 次引用
  4. New Query Optimization Techniques in the Spark Engine of Azure SynapseAbhishek Modi, Kaushik Rajan, Srinivas Thimmaiah, Prakhar Jain 等VLDB 2022 · 13 次引用
  5. POLAR: Adaptive and Non-invasive Join Order Selection via Plans of Least ResistanceDavid Justen, Daniel Ritter, Campbell Fraser, Andrew Lamb 等VLDB 2024 · 11 次引用

相关 Paper

  1. Optimizing Queries with Many-to-Many JoinsHasara Kalumin, Amol DeshpandeICDE 2025 · 3 次引用
  2. Towards Exploratory Query Optimization for Template-Based SQL WorkloadsJieming Feng, Zhanhuai Li, Qun ChenICDE 2024 · 4 次引用
  3. Asymptotically Better Query Optimization Using Indexed AlgebraPhilipp Fent, Guido Moerkotte, Thomas NeumannVLDB 2023 · 5 次引用
  4. RABIT: Efficient Range Queries with Bitmap IndexingJunchang Wang, Fu Xiao, Manos AthanassoulisSIGMOD 2026
  5. Efficient Massively Parallel Join Optimization for Large QueriesRiccardo Mancini, Srinivas Karthik, Bikash Chandra, Vasilis Mageirakos 等SIGMOD 2022 · 21 次引用
黄昏的海面,两侧是细线勾勒的悬崖