{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T23:07:54Z","timestamp":1792796874626,"version":"4.5.0"},"reference-count":47,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2023,6,13]],"date-time":"2023-06-13T00:00:00Z","timestamp":1686614400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2023,6,13]]},"abstract":"<jats:p>Query re-optimization is an adaptive query processing technique that re-invokes the optimizer at certain points in query execution. The goal is to dynamically correct the cardinality estimation errors using the statistics collected at runtime to adjust the query plan to improve the overall performance. We identify a key weakness in existing re-optimization algorithms: their subquery division and re-optimization trigger strategies rely heavily on the optimizer's initial plan, which can be far away from optimal. We, therefore, propose QuerySplit, a novel re-optimization algorithm that skips the potentially misleading global plan and instead generates subqueries directly from the logical plan as the basic re-optimization units. By developing a cost function that prioritizes the execution of less \"damaging\" subqueries, QuerySplit successfully postpones (sometimes avoids) the execution of complex large joins to maximize their probability of having smaller input sizes. We implemented QuerySplit in PostgreSQL and compared our solution against four state-of-the-art re-optimization algorithms using the Join Order Benchmark. Our experiments show that QuerySplit reduces the benchmark execution time by 35% compared to the second-best alternative. The performance gap between QuerySplit and an optimal optimizer is within 4%.<\/jats:p>","DOI":"10.1145\/3589330","type":"journal-article","created":{"date-parts":[[2023,6,20]],"date-time":"2023-06-20T16:26:45Z","timestamp":1687278405000},"page":"1-26","source":"Crossref","is-referenced-by-count":13,"title":["Efficient Query Re-optimization with Judicious Subquery Selections"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0009-0001-1799-1985","authenticated-orcid":false,"given":"Junyi","family":"Zhao","sequence":"first","affiliation":[{"name":"Tsinghua University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-4821-1558","authenticated-orcid":false,"given":"Huanchen","family":"Zhang","sequence":"additional","affiliation":[{"name":"Tsinghua University &amp; Shanghai Qi Zhi Institute, Beijing and Shanghai, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-7254-7799","authenticated-orcid":false,"given":"Yihan","family":"Gao","sequence":"additional","affiliation":[{"name":"Tsinghua University, Beijing, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,6,20]]},"reference":[{"key":"e_1_2_2_1_1","unstructured":"2022. IMDB. https:\/\/www.imdb.com."},{"key":"e_1_2_2_2_1","unstructured":"2022. TPC-DS. https:\/\/www.tpc.org\/tpcds\/."},{"key":"e_1_2_2_3_1","unstructured":"2022. TPC-H. https:\/\/www.tpc.org\/tpch\/."},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/342009.335420"},{"key":"e_1_2_2_5_1","volume-title":"Proceedings of the Second Biennial Conference on Innovative Data Systems Research (CIDR)","author":"Babu Shivnath","year":"2005","unstructured":"Shivnath Babu and Pedro Bizarro. 2005. Adaptive query processing in the looking glass. In Proceedings of the Second Biennial Conference on Innovative Data Systems Research (CIDR), Jan. 2005."},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3319894"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/275487.275492"},{"key":"e_1_2_2_8_1","volume-title":"et al","author":"Deshpande Amol","year":"2007","unstructured":"Amol Deshpande, Zachary Ives, Vijayshankar Raman, et al . 2007. Adaptive query processing. Foundations and Trends\u00ae in Databases 1, 1 (2007), 1--140."},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.14778\/3484224.3484234"},{"key":"e_1_2_2_10_1","unstructured":"PostgreSQL Documentation. 2021. Additional Supplied Modules."},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407820"},{"key":"e_1_2_2_12_1","volume-title":"Selectivity estimators for multidimensional range queries over real attributes. the VLDB Journal 14, 2","author":"Gunopulos Dimitrios","year":"2005","unstructured":"Dimitrios Gunopulos, George Kollios, Vassilis J Tsotras, and Carlotta Domeniconi. 2005. Selectivity estimators for multidimensional range queries over real attributes. the VLDB Journal 14, 2 (2005), 137--154."},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389741"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/2723372.2749438"},{"key":"e_1_2_2_15_1","unstructured":"Axel Hertzschuch Claudio Hartmann Dirk Habich and Wolfgang Lehner. 2021. Simplicity Done Right for Join Ordering.. In CIDR."},{"key":"e_1_2_2_16_1","volume-title":"Deepdb: Learn from data, not from queries! arXiv preprint arXiv:1909.00607","author":"Hilprecht Benjamin","year":"2019","unstructured":"Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa, Alejandro Molina, Kristian Kersting, and Carsten Binnig. 2019. Deepdb: Learn from data, not from queries! arXiv preprint arXiv:1909.00607 (2019)."},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/115790.115835"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/s007780050037"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/276304.276315"},{"key":"e_1_2_2_20_1","volume-title":"Cuttlefish: A lightweight primitive for adaptive query processing. arXiv preprint arXiv:1802.09180","author":"Kaftan Tomer","year":"2018","unstructured":"Tomer Kaftan, Magdalena Balazinska, Alvin Cheung, and Johannes Gehrke. 2018. Cuttlefish: A lightweight primitive for adaptive query processing. arXiv preprint arXiv:1802.09180 (2018)."},{"key":"e_1_2_2_21_1","volume-title":"Learned cardinalities: Estimating correlated joins with deep learning. arXiv preprint arXiv:1809.00677","author":"Kipf Andreas","year":"2018","unstructured":"Andreas Kipf, Thomas Kipf, Bernhard Radke, Viktor Leis, Peter Boncz, and Alfons Kemper. 2018. Learned cardinalities: Estimating correlated joins with deep learning. arXiv preprint arXiv:1809.00677 (2018)."},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3320218"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.14778\/2850583.2850594"},{"key":"e_1_2_2_24_1","unstructured":"Viktor Leis Bernhard Radke Andrey Gubichev Alfons Kemper and Thomas Neumann. 2017. Cardinality Estimation Done Right: Index-Based Join Sampling.. In Cidr."},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-017-0480-7"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342644"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1007568.1007642"},{"key":"e_1_2_2_28_1","unstructured":"MySQL. 2020. MySQL 8.0 Reference Manual."},{"key":"e_1_2_2_29_1","volume-title":"Technologie und Web (BTW) 2019","author":"Neumann Thomas","year":"2013","unstructured":"Thomas Neumann and Cesar Galindo-Legaria. 2013. Taking the edge off cardinality estimation errors using incremental execution. Datenbanksysteme f\u00fcr Business, Technologie und Web (BTW) 2019 (2013)."},{"key":"e_1_2_2_30_1","unstructured":"Oracle. 2021. Oracle Database SQL Tuning Guide 19c."},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/3209889.3209890"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/3318464.3389727"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2019.00191"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/1386118.1386121"},{"key":"e_1_2_2_35_1","first-page":"19","article-title":"LEO-DB2's learning optimizer","volume":"1","author":"Stillger Michael","year":"2001","unstructured":"Michael Stillger, Guy M Lohman, Volker Markl, and Mokhtar Kandil. 2001. LEO-DB2's learning optimizer. In VLDB, Vol. 1. 19--28.","journal-title":"VLDB"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368296"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.14778\/3485450.3485459"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.14778\/3402707.3402724"},{"key":"e_1_2_2_39_1","volume-title":"Are we ready for learned cardinality estimation? arXiv preprint arXiv:2012.06743","author":"Wang Xiaoying","year":"2020","unstructured":"Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang, and Qingqing Zhou. 2020. Are we ready for learned cardinality estimation? arXiv preprint arXiv:2012.06743 (2020)."},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.14778\/3236187.3236191"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3183742"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/320473.320479"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/2882903.2882914"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.14778\/3421424.3421432"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368294"},{"key":"e_1_2_2_46_1","doi-asserted-by":"crossref","unstructured":"Junyi Zhao. 2022. Efficient Query Re-optimization with Judicious Subquery Selections (full version). (2022). https:\/\/github.com\/zzjjyyy\/QuerySplit\/blob\/main\/Efficient_Query_Re_optimization_with_Judicious_Subquery_Selections__full_version_.pdf.","DOI":"10.1145\/3589330"},{"key":"e_1_2_2_47_1","unstructured":"Junyi Zhao. 2022. QuerySplit Implementation. https:\/\/github.com\/zzjjyyy\/QuerySplit."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3589330","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3589330","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T12:46:14Z","timestamp":1750164374000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3589330"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,6,13]]},"references-count":47,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2023,6,13]]}},"alternative-id":["10.1145\/3589330"],"URL":"https:\/\/doi.org\/10.1145\/3589330","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,6,13]]}}}