Research on Deep Reinforcement Learning-Based Multi-Table Join Order Selection
DOI:
https://doi.org/10.62051/ijcsit.v8n6.02Keywords:
Deep Reinforcement Learning (DRL), Multi-way Join Optimization, Markov Decision Process (MDP), Meta-learning, Hybrid ArchitecturesAbstract
This paper presents a comprehensive survey of join order selection (JOS) in database query optimization, with a particular focus on deep reinforcement learning (DRL)-based approaches. By synthesizing representative systems such as Google Balsa and Microsoft Adaptive Query Processing, we characterize current trends and open challenges in reinforcement learning-driven query optimization. We formulate the multi-way join ordering problem as a Markov Decision Process (MDP) and systematically compare key design dimensions, including state representation (e.g., graph neural networks versus vectorized statistical features), action space design (e.g., join pair selection versus join subtree expansion), and reward function design (e.g., sparse versus intermediate rewards), analyzing their impacts on optimization outcomes. For multi-objective optimization, we survey strategies such as Pareto optimization and scalarization, highlighting their effectiveness in balancing query latency reduction with resource consumption and execution stability. To enhance model generalization, we examine the roles of curriculum learning and meta-learning in improving sample efficiency and robustness across heterogeneous workloads. In addition, we categorize hybrid architectures that integrate DRL with traditional cost-based optimizers (CBOs), including designs where DRL functions as a query rewriter, a search-space guide for plan enumeration, or a post-optimization validator. Finally, extensive empirical evaluations on standard benchmarks such as TPC-H and the Join Order Benchmark (JOB) demonstrate that DRL-based methods can outperform classical optimizers, particularly for complex queries with large search spaces.
Downloads
References
[1] Mahmud, R. A., Faisal, F., Mahmud, S., & Khan, M. M. (2022). A simulation based online planning algorithm for multi-agent cooperative environments. In Proceedings of the 21st International Conference on Autonomous Agents and Multiagent Systems (AAMAS 2022).
[2] Ferrari Dacrema, M., Boglio, S., Cremonesi, P., & Jannach, D. (n.d.). A troubling analysis of reproducibility and progress in recommender systems research. ACM Transactions on Information Systems. (Under review).
[3] Buron Brarda, M. E., Tamargo, L. H., & García, A. J. (2019). An approach to enhance argument-based multi-criteria decision systems with conditional preferences and explainable answers. Expert Systems with Applications.
[4] Lan, H., Bao, Z., & Peng, Y. (2020). An index advisor using deep reinforcement learning. In Proceedings of the 29th ACM International Conference on Information and Knowledge Management (CIKM ‘20) (pp. 2085–2088).
[5] Luong, N. C., Hoang, D. T., Gong, S., Niyato, D., Wang, P., Liang, Y.-C., & Kim, D. I. (2019). Applications of deep reinforcement learning in communications and networking: A survey. IEEE Communications Surveys & Tutorials, 21(4), 3133–3174.
[6] Tsesmelis, D., & Simitsis, A. (2022, May). Database optimizers in the era of learning. In 2022 IEEE 38th International Conference on Data Engineering (ICDE) (pp. 3326–3329). IEEE.
[7] Liu, W., Xie, K., Pang, L., Bailey, J., Cao, L., & Zhang, Y. (2022, October). Deep learning for search and recommendation. In Proceedings of the 31st ACM International Conference on Information and Knowledge Management (CIKM ‘22) (pp. 5181–5182).
[8] Zhang, Z., Zhang, D., & Qiu, R. C. (2019). Deep reinforcement learning for power system: An overview. CSEE Journal of Power and Energy Systems, 6(1), 1–8.
[9] Olteanu, D. (2019, March). Learning models over relational databases. In 22nd International Conference on Database Theory (ICDT 2019) (Invited Talk).
[10] Guo, R. B., & Daudjee, K. (2020). Research challenges in deep reinforcement learning-based join query optimization. In Third Workshop in Exploiting AI Techniques for Data Management (aiDM’20).
[11] Ferrer-Mestres, J., Dietterich, T. G., Buffet, O., & Chadès, I. (2020). Solving K-MDPs. In Proceedings of the Thirtieth International Conference on Automated Planning and Scheduling (ICAPS 2020) (pp. 100–108).
[12] Schleich, M. (2021, June). Structure-aware machine learning over multi-relational databases. In Proceedings of the 2021 International Conference on Management of Data (SIGMOD’21) (Award Talk).
[13] Wang, X. (2023). Research on deep reinforcement learning-based join query optimization techniques [Master’s thesis, South-Central Minzu University].
[14] Wang, J., Wang, X., Sun, C., Tie, J., & Yin, F. (2023). Embedding representation based on deep reinforcement learning for multi-table join optimization. Computer Engineering and Design, (2), 264–269.
[15] Fu, H. (2021). Research on Spark SQL join query optimization based on machine learning [Master’s thesis, Southeast University].
[16] Ye, G. (2023). Join order selection optimization based on deep graph representation [Master’s thesis, University of Electronic Science and Technology of China].
[17] Gao, R. (2023). Research on join query optimization based on deep reinforcement learning [Master’s thesis, Chengdu University of Information Technology].
[18] Yang, W., & Wen, S. (2000). An optimization method for aggregative multi-table join queries. Computer Systems and Applications, (1), 60–61.
[19] Wang, S., Liu, M., Ma, Y., & Li, J. (2000). Performance analysis and optimization of group query statements based on multi-table joins. Computer Engineering, (7), 185–187.
[20] Zong, F., Zhao, Y., Wang, G., & Ji, H. (2022). Optimization method for multi-table data join projection and join order. Journal of Frontiers of Computer Science and Technology, (1), 110–123.
[21] Zhang, X., Cao, X., Wang, N., & Meng, X. (2025). Multi-table star join queries based on local differential privacy. Journal of Software, (2), 368–388.
[22] Chen, X. (2025). Research on multi-table join query methods based on centralized differential privacy [Master’s thesis, Henan University of Economics and Law].
[23] Qian, W., Jing, Y., Wang, X., & Wu, Z. (2022). A cardinality estimation method for multi-table join query optimization. Computer Engineering, (6), 173–179.
[24] Finn, C., Abbeel, P., & Levine, S. (2017). Model-agnostic meta-learning for fast adaptation of deep networks [Doctoral dissertation, University of California, Berkeley].
[25] Vinyals, O., Blundell, C., Lillicrap, T., & Kavukcuoglu, K. (2016). Matching networks for one shot learning [Preprint]. Google DeepMind.
[26] Andrychowicz, M., Denil, M., Gómez, S., Hoffman, M. W., Pfau, D., Schaul, T., … de Freitas, N. (2016). Learning to learn by gradient descent by gradient descent [Preprint]. arXiv.
[27] Leis, V., Gubichev, A., Mirchev, A., Boncz, P., Kemper, A., & Neumann, T. (2015). How good are query optimizers, really? (Technical Report). Technical University of Munich.
[28] Marcus, R., & Papaemmanouil, O. (2018). Deep reinforcement learning for join order selection (Technical Report). Brandeis University.
[29] Trummer, I., Wang, J., Wei, Z., Maram, D., Moseley, S., Jo, S., & Antonakakis, J. (2020). SkinnerDB: Adaptive query processing through reinforcement learning (Technical Report). Cornell University.
[30] Qi, J., Li, G., Wang, J., & Zhou, L. (2022). Meta-learning with curriculum scheduling for query optimization [Preprint]. Tsinghua University.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 International Journal of Computer Science and Information Technology

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







