Query Join Order Optimization Method Based on Dynamic Double Deep Q-Network

Author:

Ji Lixia12,Zhao Runzhe13,Dang Yiping1,Liu Junxiu4,Zhang Han1

Affiliation:

1. School of Cyberspace Security, Zheng Zhou University, No. 100 Science Avenue, Zhengzhou 450001, China

2. College of Computer Science, Si Chuan University, Chengdu 610041, China

3. China Information Technology Designing Consulting Institute Co., Ltd., No. 1 Huzhu Road, Zhengzhou 450007, China

4. Intelligent Systems Research Centre, School of Computing, Engineering & Intelligent Systems, Ulster University, Magee Campus, Londonderry BT48 7JL, UK

Abstract

A join order directly affects database query performance and computational overhead. Deep reinforcement learning (DRL) can explore efficient query plans while not exhausting the search space. However, the deep Q network (DQN) suffers from the overestimation of action values in query optimization, which can lead to limited query performance. In addition, ε-greedy exploration is not efficient enough and does not enable deep exploration. Accordingly, in this paper, we propose a dynamic double DQN (DDQN) order selection method(DDOS) for join order optimization. First, the method models the join query as a Markov decision process (MDP), then solves the DRL model by integrating the network model DQN and DDQN weighting into the DRL model’s estimation error problem in query joining, and finally improves the quality of developing query plans. And actions are selected using a dynamic progressive search strategy to improve the randomness and depth of exploration and accumulate a high information gain of exploration. The performance of the proposed method is compared with those of dynamic programming, heuristic algorithms, and DRL optimization methods based on the query set Join Order Benchmark (JOB). The experimental results show that the proposed method can effectively improve the query performance with a favorable generalization ability and robustness, and outperforms other baselines in multi-join query applications.

Funder

Major Science and Technology Project in Henan Province

Zhengzhou Major Science and Technology Innovation Project

Publisher

MDPI AG

Subject

Electrical and Electronic Engineering,Computer Networks and Communications,Hardware and Architecture,Signal Processing,Control and Systems Engineering

Reference35 articles.

1. A survey on advancing the dbms query optimizer: Cardinality estimation, cost model, and plan enumeration;Lan;Data Sci. Eng.,2021

2. How good are query optimizers, really?;Leis;Proc. VLDB Endow.,2015

3. 1000 Tables under the form;Dieu;Proc. VLDB Endow.,2009

4. Have query optimizers hit the wall?;Snodgrass;VLDB J.,2022

5. The PostgreSQL Global Development Group (2021, October 16). PostgreSQL: The World’s Most Advanced Open Source Database[EB/OL]. Available online: http://www.postgresql.org/.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3