{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T04:04:16Z","timestamp":1790395456003,"version":"4.1.0"},"reference-count":35,"publisher":"Association for Computing Machinery (ACM)","issue":"12","content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. VLDB Endow."],"published-print":{"date-parts":[[2023,8]]},"abstract":"<jats:p>Join Order Selection (JOS) is a fundamental challenge in query optimization, as it significantly affects query performance. However, finding an optimal join order is an NP-hard problem due to the exponentially large search space. Despite the decades-long effort, traditional methods still suffer from limitations. Deep Reinforcement Learning (DRL) approaches have recently gained growing interest and shown superior performance over traditional methods. These DRL-based methods could leverage prior experience through the trial-and-error strategy to automatically explore the optimal join order. This tutorial will focus on recent DRL-based approaches for join order selection by providing a comprehensive overview of the various approaches. We will start by briefly introducing the core concepts of join ordering and the traditional methods for JOS. Next, we will provide some preliminary knowledge about DRL and then delve into DRL-based join order selection approaches by offering detailed information on those methods, analyzing their relationships, and summarizing their weaknesses and strengths. To help the audience gain a deeper understanding of DRL approaches for JOS, we will present two open-source demonstrations and compare their differences. Finally, we will identify research challenges and open problems to provide insights into future research directions. This tutorial will provide valuable guidance for developing more practical DRL approaches for JOS.<\/jats:p>","DOI":"10.14778\/3611540.3611576","type":"journal-article","created":{"date-parts":[[2023,9,15]],"date-time":"2023-09-15T11:32:37Z","timestamp":1694777557000},"page":"3882-3885","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":19,"title":["Join Order Selection with Deep Reinforcement Learning: Fundamentals, Techniques, and Challenges"],"prefix":"10.14778","volume":"16","author":[{"given":"Zhengtong","family":"Yan","sequence":"first","affiliation":[{"name":"University of Helsinki, Helsinki, Finland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Valter","family":"Uotila","sequence":"additional","affiliation":[{"name":"University of Helsinki, Helsinki, Finland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jiaheng","family":"Lu","sequence":"additional","affiliation":[{"name":"University of Helsinki, Helsinki, Finland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,8]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Genetic Optimization for the Join Ordering Problem of Database Queries","author":"Chande Swati V","unstructured":"Swati V Chande and Madhavi Sinha. 2011. Genetic Optimization for the Join Ordering Problem of Database Queries. In INDICON. IEEE, 1--5."},{"key":"e_1_2_1_2_1","doi-asserted-by":"crossref","unstructured":"Jin Chen Guanyu Ye Yan Zhao Shuncheng Liu Liwei Deng Xu Chen Rui Zhou and Kai Zheng. 2022. Efficient Join Order Selection Learning with Graph-based Representation. In SIGKDD. ACM 97--107.","DOI":"10.1145\/3534678.3539303"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.14778\/3587136.3587150"},{"key":"e_1_2_1_4_1","volume-title":"On the Complexity of Generating Optimal Left-Deep Processing Trees with Cross Products","author":"Cluet Sophie","unstructured":"Sophie Cluet and Guido Moerkotte. 1995. On the Complexity of Generating Optimal Left-Deep Processing Trees with Cross Products. In ICDT. Springer, 54--67."},{"key":"e_1_2_1_5_1","volume-title":"A New Heuristic for Optimizing Large Queries","author":"Fegaras Leonidas","unstructured":"Leonidas Fegaras. 1998. A New Heuristic for Optimizing Large Queries. In DEXA. Springer, 726--735."},{"key":"e_1_2_1_6_1","doi-asserted-by":"crossref","unstructured":"Runsheng Benson Guo and Khuzaima Daudjee. 2020. Research Challenges in Deep Reinforcement Learning-based Join Query Optimization. In aiDM. 1--6.","DOI":"10.1145\/3401071.3401657"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1270.1498"},{"key":"e_1_2_1_8_1","volume-title":"Learning to Optimize Join Queries with Deep Reinforcement Learning. arXiv preprint arXiv:1808.03196","author":"Krishnan Sanjay","year":"2018","unstructured":"Sanjay Krishnan, Zongheng Yang, Ken Goldberg, Joseph Hellerstein, and Ion Stoica. 2018. Learning to Optimize Join Queries with Deep Reinforcement Learning. arXiv preprint arXiv:1808.03196 (2018)."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.14778\/2850583.2850594"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-017-0480-7"},{"key":"e_1_2_1_11_1","doi-asserted-by":"crossref","unstructured":"Guoliang Li Xuanhe Zhou and Lei Cao. 2021. AI Meets Database: AI4DB and DB4AI. In SIGMOD. ACM 2859--2866.","DOI":"10.1145\/3448016.3457542"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476311.3476405"},{"key":"e_1_2_1_13_1","doi-asserted-by":"crossref","unstructured":"Riccardo Mancini Srinivas Karthik Bikash Chandra Vasilis Mageirakos and Anastasia Ailamaki. 2022. Efficient Massively Parallel Join Optimization for Large Queries. In SIGMOD. ACM 122--135.","DOI":"10.1145\/3514221.3517871"},{"key":"e_1_2_1_14_1","volume-title":"Bao: Making Learned Query Optimization Practical. In SIGMOD. ACM, 1275--1288.","author":"Marcus Ryan","year":"2021","unstructured":"Ryan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul, Mohammad Alizadeh, and Tim Kraska. 2021. Bao: Making Learned Query Optimization Practical. In SIGMOD. ACM, 1275--1288."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.14778\/3342263.3342644"},{"key":"e_1_2_1_16_1","doi-asserted-by":"crossref","unstructured":"Ryan Marcus and Olga Papaemmanouil. 2018. Deep Reinforcement Learning for Join Order Enumeration. In aiDM. 1--4.","DOI":"10.1145\/3211954.3211957"},{"key":"e_1_2_1_17_1","unstructured":"Guido Moerkotte. 2023. Building Query Compilers. https:\/\/pi3.informatik.uni-mannheim.de\/~moer\/querycompiler.pdf"},{"key":"e_1_2_1_18_1","unstructured":"Guido Moerkotte and Thomas Neumann. 2006. Analysis of Two Existing and One New Dynamic Programming Algorithm for the Generation of Optimal Bushy Join Trees without Cross Products. In VLDB. 930--941."},{"key":"e_1_2_1_19_1","doi-asserted-by":"crossref","unstructured":"Guido Moerkotte and Thomas Neumann. 2008. Dynamic Programming Strikes Back. In SIGMOD. ACM 539--552.","DOI":"10.1145\/1376616.1376672"},{"key":"e_1_2_1_20_1","doi-asserted-by":"crossref","unstructured":"Thomas Neumann and Bernhard Radke. 2018. Adaptive Optimization of Very Large Join Queries. In SIGMOD. ACM 677--692.","DOI":"10.1145\/3183713.3183733"},{"key":"e_1_2_1_21_1","doi-asserted-by":"crossref","unstructured":"P Griffiths Selinger Morton M Astrahan Donald D Chamberlin Raymond A Lorie and Thomas G Price. 1979. Access Path Selection in a Relational Database Management System. In SIGMOD. 23--34.","DOI":"10.1145\/582095.582099"},{"key":"e_1_2_1_22_1","doi-asserted-by":"crossref","unstructured":"Immanuel Trummer Junxiong Wang Deepak Maram Samuel Moseley Saehan Jo and Joseph Antonakakis. 2019. SkinnerDB: Regret-Bounded Query Evaluation via Reinforcement Learning. In SIGMOD. ACM 1153--1170.","DOI":"10.1145\/3299869.3300088"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3464389"},{"key":"e_1_2_1_24_1","volume-title":"Database Optimizers in the Era of Learning","author":"Tsesmelis Dimitris","unstructured":"Dimitris Tsesmelis and Alkis Simitsis. 2022. Database Optimizers in the Era of Learning. In ICDE. IEEE, 3213--3216."},{"key":"e_1_2_1_25_1","unstructured":"Bennet Vance. 1998. Join-order optimization with Cartesian products. Ph.D. Dissertation. Oregon Graduate Institute of Science and Technology."},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-45033-5_5"},{"key":"e_1_2_1_27_1","volume-title":"COOOL: A Learning-To-Rank Approach for SQL Hint Recommendations. arXiv preprint arXiv:2304.04407","author":"Xu Xianghong","year":"2023","unstructured":"Xianghong Xu, Zhibing Zhao, Tieying Zhang, Rong Kang, Luming Sun, and Jianjun Chen. 2023. COOOL: A Learning-To-Rank Approach for SQL Hint Recommendations. arXiv preprint arXiv:2304.04407 (2023)."},{"key":"e_1_2_1_28_1","volume-title":"Workload-Aware Performance Tuning for Autonomous DBMSs","author":"Yan Zhengtong","unstructured":"Zhengtong Yan, Jiaheng Lu, Naresh Chainani, and Chunbin Lin. 2021. Workload-Aware Performance Tuning for Autonomous DBMSs. In ICDE. IEEE, 2365--2368."},{"key":"e_1_2_1_29_1","volume-title":"Make Wise Decisions for Your DBMSs: Workload Forecasting and Performance Prediction Before Execution","author":"Yan Zhengtong","unstructured":"Zhengtong Yan, Jiaheng Lu, Qingsong Guo, Gongsheng Yuan, Calvin Sun, and Steven Yang. 2022. Make Wise Decisions for Your DBMSs: Workload Forecasting and Performance Prediction Before Execution. In DASFAA. Springer."},{"key":"e_1_2_1_30_1","volume-title":"Balsa: Learning a Query Optimizer Without Expert Demonstrations. In SIGMOD. ACM, 931--944.","author":"Yang Zongheng","year":"2022","unstructured":"Zongheng Yang, Wei-Lin Chiang, Sifei Luan, Gautam Mittal, Michael Luo, and Ion Stoica. 2022. Balsa: Learning a Query Optimizer Without Expert Demonstrations. In SIGMOD. ACM, 931--944."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.14778\/3565838.3565846"},{"key":"e_1_2_1_32_1","volume-title":"Reinforcement Learning with Tree-LSTM for Join Order Selection","author":"Yu Xiang","unstructured":"Xiang Yu, Guoliang Li, Chengliang Chai, and Nan Tang. 2020. Reinforcement Learning with Tree-LSTM for Join Order Selection. In ICDE. IEEE, 1297--1308."},{"key":"e_1_2_1_33_1","unstructured":"Ji Zhang. 2020. AlphaJoin: Join Order Selection \u00e0 la AlphaGo. In PhD@ VLDB."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.14778\/3583140.3583160"},{"key":"e_1_2_1_35_1","unstructured":"Rong Zhu Ziniu Wu Chengliang Chai Andreas Pfadler Bolin Ding Guoliang Li and Jingren Zhou. 2022. Learned Query Optimizer: At the Forefront of AI-Driven Databases. In EDBT. 1--4."}],"container-title":["Proceedings of the VLDB Endowment"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.14778\/3611540.3611576","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,9,10]],"date-time":"2025-09-10T22:34:57Z","timestamp":1757543697000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.14778\/3611540.3611576"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,8]]},"references-count":35,"journal-issue":{"issue":"12","published-print":{"date-parts":[[2023,8]]}},"alternative-id":["10.14778\/3611540.3611576"],"URL":"https:\/\/doi.org\/10.14778\/3611540.3611576","relation":{},"ISSN":["2150-8097"],"issn-type":[{"value":"2150-8097","type":"print"}],"subject":[],"published":{"date-parts":[[2023,8]]},"assertion":[{"value":"2023-08-01","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}