Bitvector-aware Query Optimization for Decision Support Queries. Ding, B., Chaudhuri, S., & Narasayya, V. In Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data, of SIGMOD '20, pages 2011–2026, New York, NY, USA, 2020. Association for Computing Machinery.
Paper doi abstract bibtex 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 a commercial database DBMS-X as a transformation rule. Our evaluation on both industry standard benchmarks and customer workload shows that, compared with DBMS-X, 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.
@inproceedings{10.1145/3318464.3389769,
author = {Ding, Bailu and Chaudhuri, Surajit and Narasayya, Vivek},
title = {Bitvector-aware Query Optimization for Decision Support Queries},
year = {2020},
isbn = {9781450367356},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3318464.3389769},
doi = {10.1145/3318464.3389769},
abstract = {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 a commercial database DBMS-X as a transformation rule. Our evaluation on both industry standard benchmarks and customer workload shows that, compared with DBMS-X, 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.},
booktitle = {Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data},
pages = {2011–2026},
numpages = {16},
keywords = {query processing, query optimization, join order enumeration, database, bloom filter, bitvector filter},
location = {Portland, OR, USA},
series = {SIGMOD '20}
}
Downloads: 0
{"_id":"uo45EMypgM66cQtbJ","bibbaseid":"ding-chaudhuri-narasayya-bitvectorawarequeryoptimizationfordecisionsupportqueries-2020","author_short":["Ding, B.","Chaudhuri, S.","Narasayya, V."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","author":[{"propositions":[],"lastnames":["Ding"],"firstnames":["Bailu"],"suffixes":[]},{"propositions":[],"lastnames":["Chaudhuri"],"firstnames":["Surajit"],"suffixes":[]},{"propositions":[],"lastnames":["Narasayya"],"firstnames":["Vivek"],"suffixes":[]}],"title":"Bitvector-aware Query Optimization for Decision Support Queries","year":"2020","isbn":"9781450367356","publisher":"Association for Computing Machinery","address":"New York, NY, USA","url":"https://doi.org/10.1145/3318464.3389769","doi":"10.1145/3318464.3389769","abstract":"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 a commercial database DBMS-X as a transformation rule. Our evaluation on both industry standard benchmarks and customer workload shows that, compared with DBMS-X, 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.","booktitle":"Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data","pages":"2011–2026","numpages":"16","keywords":"query processing, query optimization, join order enumeration, database, bloom filter, bitvector filter","location":"Portland, OR, USA","series":"SIGMOD '20","bibtex":"@inproceedings{10.1145/3318464.3389769,\nauthor = {Ding, Bailu and Chaudhuri, Surajit and Narasayya, Vivek},\ntitle = {Bitvector-aware Query Optimization for Decision Support Queries},\nyear = {2020},\nisbn = {9781450367356},\npublisher = {Association for Computing Machinery},\naddress = {New York, NY, USA},\nurl = {https://doi.org/10.1145/3318464.3389769},\ndoi = {10.1145/3318464.3389769},\nabstract = {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 a commercial database DBMS-X as a transformation rule. Our evaluation on both industry standard benchmarks and customer workload shows that, compared with DBMS-X, 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.},\nbooktitle = {Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data},\npages = {2011–2026},\nnumpages = {16},\nkeywords = {query processing, query optimization, join order enumeration, database, bloom filter, bitvector filter},\nlocation = {Portland, OR, USA},\nseries = {SIGMOD '20}\n}\n\n","author_short":["Ding, B.","Chaudhuri, S.","Narasayya, V."],"key":"10.1145/3318464.3389769","id":"10.1145/3318464.3389769","bibbaseid":"ding-chaudhuri-narasayya-bitvectorawarequeryoptimizationfordecisionsupportqueries-2020","role":"author","urls":{"Paper":"https://doi.org/10.1145/3318464.3389769"},"keyword":["query processing","query optimization","join order enumeration","database","bloom filter","bitvector filter"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"inproceedings","biburl":"https://bibbase.org/network/files/QDBhwkwh8hDye6xL8","dataSources":["xHWpCrSGkLBjtz7P2","4x87iNQYFcnH8n6Cm"],"keywords":["query processing","query optimization","join order enumeration","database","bloom filter","bitvector filter"],"search_terms":["bitvector","aware","query","optimization","decision","support","queries","ding","chaudhuri","narasayya"],"title":"Bitvector-aware Query Optimization for Decision Support Queries","year":2020}