{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,13]],"date-time":"2026-10-13T18:38:32Z","timestamp":1791916712623,"version":"4.3.4"},"reference-count":38,"publisher":"Association for Computing Machinery (ACM)","issue":"1","license":[{"start":{"date-parts":[[2022,5,31]],"date-time":"2022-05-31T00:00:00Z","timestamp":1653955200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["SIGMOD Rec."],"published-print":{"date-parts":[[2022,5,31]]},"abstract":"<jats:p>Recent efforts applying machine learning techniques to query optimization have shown few practical gains due to substantive training overhead, inability to adapt to changes, and poor tail performance. Motivated by these difficulties, we introduce Bao (the Bandit optimizer). Bao takes advantage of the wisdom built into existing query optimizers by providing per-query optimization hints. Bao combines modern tree convolutional neural networks with Thompson sampling, a well-studied reinforcement learning algorithm. As a result, Bao automatically learns from its mistakes and adapts to changes in query workloads, data, and schema. Experimentally, we demonstrate that Bao can quickly learn strategies that improve end-to-end query execution performance, including tail latency, for several workloads containing longrunning queries. In cloud environments, we show that Bao can offer both reduced costs and better performance compared with a commercial system.<\/jats:p>","DOI":"10.1145\/3542700.3542703","type":"journal-article","created":{"date-parts":[[2022,6,1]],"date-time":"2022-06-01T18:10:16Z","timestamp":1654107016000},"page":"6-13","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":58,"title":["Bao"],"prefix":"10.1145","volume":"51","author":[{"given":"Ryan","family":"Marcus","sequence":"first","affiliation":[{"name":"MIT CSAIL, Intel Labs"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Parimarjan","family":"Negi","sequence":"additional","affiliation":[{"name":"MIT CSAIL"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hongzi","family":"Mao","sequence":"additional","affiliation":[{"name":"MIT CSAIL"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Nesime","family":"Tatbul","sequence":"additional","affiliation":[{"name":"MIT CSAIL, Intel Labs"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mohammad","family":"Alizadeh","sequence":"additional","affiliation":[{"name":"MIT CSAIL"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tim","family":"Kraska","sequence":"additional","affiliation":[{"name":"MIT CSAIL"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2022,6]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"Google Cloud Platform https:\/\/cloud.google.com\/.  Google Cloud Platform https:\/\/cloud.google.com\/."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/BigData.2015.7363736"},{"key":"e_1_2_1_3_1","volume-title":"NIPS'11","author":"Chapelle O.","year":"2011","unstructured":"O. Chapelle and L. Li . An empirical evaluation of Thompson sampling. In Advances in Neural Information Processing Systems , NIPS'11 , 2011 . O. Chapelle and L. Li. An empirical evaluation of Thompson sampling. In Advances in Neural Information Processing Systems, NIPS'11, 2011."},{"key":"e_1_2_1_4_1","volume-title":"July","author":"Collier M.","year":"2018","unstructured":"M. Collier and H. U. Llorens . Deep Contextual Multi-armed Bandits. arXiv:1807.09809 [cs, stat] , July 2018 . M. Collier and H. U. Llorens. Deep Contextual Multi-armed Bandits. arXiv:1807.09809 [cs, stat], July 2018."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3324957"},{"key":"e_1_2_1_6_1","first-page":"109","volume-title":"Proceedings of the 14th International Conference on Extending Database Technology, EDBT '14","author":"Duggan J.","year":"2014","unstructured":"J. Duggan , O. Papaemmanouil , U. Cetintemel , and E. Upfal . Contender: A Resource Modeling Approach for Concurrent Query Performance Prediction . In Proceedings of the 14th International Conference on Extending Database Technology, EDBT '14 , pages 109 -- 120 , 2014 . J. Duggan, O. Papaemmanouil, U. Cetintemel, and E. Upfal. Contender: A Resource Modeling Approach for Concurrent Query Performance Prediction. In Proceedings of the 14th International Conference on Extending Database Technology, EDBT '14, pages 109--120, 2014."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/3329859.3329877"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/3211346.3211355"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3401071.3401657"},{"key":"e_1_2_1_10_1","volume-title":"Feb.","author":"Jain S.","year":"2018","unstructured":"S. Jain , B. Howe , J. Yan , and T. Cruanes . Query2Vec: An Evaluation of NLP Techniques for Generalized Workload Analytics. arXiv:1801.05613 [cs] , Feb. 2018 . S. Jain, B. Howe, J. Yan, and T. Cruanes. Query2Vec: An Evaluation of NLP Techniques for Generalized Workload Analytics. arXiv:1801.05613 [cs], Feb. 2018."},{"key":"e_1_2_1_11_1","volume-title":"Feb.","author":"Kaftan T.","year":"2018","unstructured":"T. Kaftan , M. Balazinska , A. Cheung , and J. Gehrke . Cuttlefish: A Lightweight Primitive for Adaptive Query Processing. arXiv preprint , Feb. 2018 . T. Kaftan, M. Balazinska, A. Cheung, and J. Gehrke. Cuttlefish: A Lightweight Primitive for Adaptive Query Processing. arXiv preprint, Feb. 2018."},{"key":"e_1_2_1_12_1","volume-title":"Learned Cardinalities: Estimating Correlated Joins with Deep Learning. In 9th Biennial Conference on Innovative Data Systems Research, CIDR '19","author":"Kipf A.","year":"2019","unstructured":"A. Kipf , T. Kipf , B. Radke , V. Leis , P. Boncz , and A. Kemper . Learned Cardinalities: Estimating Correlated Joins with Deep Learning. In 9th Biennial Conference on Innovative Data Systems Research, CIDR '19 , 2019 . A. Kipf, T. Kipf, B. Radke, V. Leis, P. Boncz, and A. Kemper. Learned Cardinalities: Estimating Correlated Joins with Deep Learning. In 9th Biennial Conference on Innovative Data Systems Research, CIDR '19, 2019."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/3183713.3196909"},{"key":"e_1_2_1_14_1","volume-title":"Aug.","author":"Krishnan S.","year":"2018","unstructured":"S. Krishnan , Z. Yang , K. Goldberg , J. Hellerstein , and I. Stoica . Learning to Optimize Join Queries With Deep Reinforcement Learning. arXiv:1808.03196 [cs] , Aug. 2018 . S. Krishnan, Z. Yang, K. Goldberg, J. Hellerstein, and I. Stoica. Learning to Optimize Join Queries With Deep Reinforcement Learning. arXiv:1808.03196 [cs], Aug. 2018."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.14778\/2850583.2850594"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.5555\/2886444.2886453"},{"key":"e_1_2_1_17_1","volume-title":"ACM Blog '14","author":"Lohman G.","year":"2014","unstructured":"G. Lohman . Is Query Optimization a ?\"Solved\" Problem? In ACM SIGMOD Blog , ACM Blog '14 , 2014 . G. Lohman. Is Query Optimization a ?\"Solved\" Problem? In ACM SIGMOD Blog, ACM Blog '14, 2014."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3452838"},{"issue":"11","key":"e_1_2_1_19_1","first-page":"1705","article-title":"Neo","volume":"12","author":"Marcus R.","year":"2019","unstructured":"R. Marcus , P. Negi , H. Mao , C. Zhang , M. Alizadeh , T. Kraska , O. Papaemmanouil , and N. Tatbul . Neo : A Learned Query Optimizer. PVLDB , 12 ( 11 ): 1705 -- 1718 , 2019 . R. Marcus, P. Negi, H. Mao, C. Zhang, M. Alizadeh, T. Kraska, O. Papaemmanouil, and N. Tatbul. Neo: A Learned Query Optimizer. PVLDB, 12(11):1705--1718, 2019.","journal-title":"A Learned Query Optimizer. PVLDB"},{"key":"e_1_2_1_20_1","volume-title":"Deep Reinforcement Learning for Join Order Enumeration. In First International Workshop on Exploiting Artificial Intelligence Techniques for Data Management, aiDM @ SIGMOD '18","author":"Marcus R.","year":"2018","unstructured":"R. Marcus and O. Papaemmanouil . Deep Reinforcement Learning for Join Order Enumeration. In First International Workshop on Exploiting Artificial Intelligence Techniques for Data Management, aiDM @ SIGMOD '18 , Houston, TX , 2018 . R. Marcus and O. Papaemmanouil. Deep Reinforcement Learning for Join Order Enumeration. In First International Workshop on Exploiting Artificial Intelligence Techniques for Data Management, aiDM @ SIGMOD '18, Houston, TX, 2018."},{"key":"e_1_2_1_21_1","volume-title":"The Need for Biases in Learning Generalizations. Technical report","author":"Mitchell T. M.","year":"1980","unstructured":"T. M. Mitchell . The Need for Biases in Learning Generalizations. Technical report , 1980 . T. M. Mitchell. The Need for Biases in Learning Generalizations. Technical report, 1980."},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.5555\/3015812.3016002"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3448016.3457568"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDEW49219.2020.00034"},{"key":"e_1_2_1_25_1","volume-title":"Learning State Representations for Query Optimization with Deep Reinforcement Learning. In 2nd Workshop on Data Managmeent for End-to-End Machine Learning, DEEM '18","author":"Ortiz J.","year":"2018","unstructured":"J. Ortiz , M. Balazinska , J. Gehrke , and S. S. Keerthi . Learning State Representations for Query Optimization with Deep Reinforcement Learning. In 2nd Workshop on Data Managmeent for End-to-End Machine Learning, DEEM '18 , 2018 . J. Ortiz, M. Balazinska, J. Gehrke, and S. S. Keerthi. Learning State Representations for Query Optimization with Deep Reinforcement Learning. In 2nd Workshop on Data Managmeent for End-to-End Machine Learning, DEEM '18, 2018."},{"key":"e_1_2_1_26_1","volume-title":"Sept.","author":"Ortiz J.","year":"2019","unstructured":"J. Ortiz , M. Balazinska , J. Gehrke , and S. S. Keerthi . An Empirical Analysis of Deep Learning for Cardinality Estimation. arXiv:1905.06425 [cs] , Sept. 2019 . J. Ortiz, M. Balazinska, J. Gehrke, and S. S. Keerthi. An Empirical Analysis of Deep Learning for Cardinality Estimation. arXiv:1905.06425 [cs], Sept. 2019."},{"key":"e_1_2_1_27_1","volume-title":"Dec.","author":"Park Y.","year":"2018","unstructured":"Y. Park , S. Zhong , and B. Mozafari . QuickSel: Quick Selectivity Learning with Mixture Models. arXiv:1812.10568 [cs] , Dec. 2018 . Y. Park, S. Zhong, and B. Mozafari. QuickSel: Quick Selectivity Learning with Mixture Models. arXiv:1812.10568 [cs], Dec. 2018."},{"issue":"2","key":"e_1_2_1_28_1","first-page":"86","volume":"5","author":"Pavlo A.","year":"2011","unstructured":"A. Pavlo , E. P. C. Jones , and S. Zdonik . On Predictive Modeling for Optimizing Transaction Execution in Parallel OLTP Systems. PVLDB , 5 ( 2 ): 86 -- 96 , 2011 . A. Pavlo, E. P. C. Jones, and S. Zdonik. On Predictive Modeling for Optimizing Transaction Execution in Parallel OLTP Systems. PVLDB, 5(2):86--96, 2011.","journal-title":"PVLDB"},{"key":"e_1_2_1_29_1","first-page":"387","article-title":"Can we protect purchasers without hurting Microsoft","volume":"25","author":"Read A. G.","year":"2006","unstructured":"A. G. Read . DeWitt clauses : Can we protect purchasers without hurting Microsoft . Rev. Litig. , 25 : 387 , 2006 . A. G. Read. DeWitt clauses: Can we protect purchasers without hurting Microsoft. Rev. Litig., 25:387, 2006.","journal-title":"Rev. Litig."},{"key":"e_1_2_1_30_1","first-page":"511","volume-title":"Access Path Selection in a Relational Database Management System","author":"Selinger P. G.","year":"1979","unstructured":"P. G. Selinger , M. M. Astrahan , D. D. Chamberlin , R. A. Lorie , and T. G. Price . Access Path Selection in a Relational Database Management System . In J. Mylopolous and M. Brodie, editors, SIGMOD '79, SIGMOD '79, pages 511 -- 522 , San Francisco (CA), 1979 . Morgan Kaufmann . P. G. Selinger, M. M. Astrahan, D. D. Chamberlin, R. A. Lorie, and T. G. Price. Access Path Selection in a Relational Database Management System. In J. Mylopolous and M. Brodie, editors, SIGMOD '79, SIGMOD '79, pages 511--522, San Francisco (CA), 1979. Morgan Kaufmann."},{"key":"e_1_2_1_31_1","volume-title":"Bill Howe. Database-Agnostic Workload Management. In 9th Biennial Conference on Innovative Data Systems Research, CIDR '19","author":"Jain Shrainik","year":"2019","unstructured":"Shrainik Jain , Jiaqi Yan , Thiery Cruanes , and Bill Howe. Database-Agnostic Workload Management. In 9th Biennial Conference on Innovative Data Systems Research, CIDR '19 , 2019 . Shrainik Jain, Jiaqi Yan, Thiery Cruanes, and Bill Howe. Database-Agnostic Workload Management. In 9th Biennial Conference on Innovative Data Systems Research, CIDR '19, 2019."},{"key":"e_1_2_1_32_1","first-page":"19","volume-title":"VLDB '01","author":"Stillger M.","year":"2001","unstructured":"M. Stillger , G. M. Lohman , V. Markl , and M. Kandil . LEO - DB2's LEarning Optimizer. In VLDB , VLDB '01 , pages 19 -- 28 , 2001 . M. Stillger, G. M. Lohman, V. Markl, and M. Kandil. LEO - DB2's LEarning Optimizer. In VLDB, VLDB '01, pages 19--28, 2001."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368296"},{"key":"e_1_2_1_34_1","volume-title":"Biometrika","author":"Thompson W. R.","year":"1933","unstructured":"W. R. Thompson . On the Likelihood that One Unknown Probability Exceeds Another in View of the Evidence of Two Samples . Biometrika , 1933 . W. R. Thompson. On the Likelihood that One Unknown Probability Exceeds Another in View of the Evidence of Two Samples. Biometrika, 1933."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.14778\/3229863.3236263"},{"key":"e_1_2_1_37_1","volume-title":"June","author":"Yang Z.","year":"2020","unstructured":"Z. Yang , A. Kamsetty , S. Luan , E. Liang , Y. Duan , X. Chen , and I. Stoica . NeuroCard: One Cardinality Estimator for All Tables. arXiv:2006.08109 [cs] , June 2020 . Z. Yang, A. Kamsetty, S. Luan, E. Liang, Y. Duan, X. Chen, and I. Stoica. NeuroCard: One Cardinality Estimator for All Tables. arXiv:2006.08109 [cs], June 2020."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.14778\/3368289.3368294"},{"key":"e_1_2_1_39_1","volume-title":"Feb.","author":"Zhou L.","year":"2016","unstructured":"L. Zhou . A Survey on Contextual Multi-armed Bandits. arXiv:1508.03326 [cs] , Feb. 2016 . L. Zhou. A Survey on Contextual Multi-armed Bandits. arXiv:1508.03326 [cs], Feb. 2016."}],"container-title":["ACM SIGMOD Record"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3542700.3542703","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3542700.3542703","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T15:02:22Z","timestamp":1750172542000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3542700.3542703"}},"subtitle":["Making Learned Query Optimization Practical"],"short-title":[],"issued":{"date-parts":[[2022,5,31]]},"references-count":38,"journal-issue":{"issue":"1","published-print":{"date-parts":[[2022,5,31]]}},"alternative-id":["10.1145\/3542700.3542703"],"URL":"https:\/\/doi.org\/10.1145\/3542700.3542703","relation":{},"ISSN":["0163-5808"],"issn-type":[{"value":"0163-5808","type":"print"}],"subject":[],"published":{"date-parts":[[2022,5,31]]},"assertion":[{"value":"2022-06-01","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}