一种用于连接顺序选择的深度强化学习新框架
A Novel Framework Using Deep Reinforcement Learning for Join Order Selection
AI总结:
针对连接顺序选择中搜索空间指数增长、传统优化器难以自适应的问题,提出整合GNN、Tree LSTM与DuelingDQN的GTDD框架,实验证明其性能优于现有最先进技术。
摘要:
连接顺序选择是查询优化的一个子领域,旨在为SQL查询找到成本最低的最优连接顺序。其挑战在于搜索空间会随着表数量的增加呈指数级增长,使得穷举枚举无法实现。传统优化器使用静态启发式方法来剪枝搜索空间,但它们往往无法适应变化,也无法根据数据库管理系统(DBMS)的反馈进行改进。近期研究采用深度强化学习(DRL)来解决这些局限,使模型能够利用反馈动态搜索更优的连接顺序,并随时间提升性能。现有研究主要聚焦于捕捉连接顺序序列及其不同层级的表示,对强化学习方法的对比分析较为有限。本文提出GTDD,这是一个整合了图神经网络(Graph Neural Networks, GNN)、树结构长短期记忆网络(Treestructured Long Short-Term Memory, Tree LSTM)以及DuelingDQN的新型框架。我们开展了一系列实验,结果表明GTDD相比现有最先进技术具有明显优势。
英文摘要:
Join order selection is a sub-field of query optimization that aims to find the optimal join order for an SQL query with the minimum cost. The challenge lies in the exponentially growing search space as the number of tables increases, making exhaustive enumeration impractical. Traditional optimizers use static heuristics to prune the search space, but they often fail to adapt to changes or improve based on feedback from the DBMS. Recent research addresses these limitations with Deep Reinforcement Learning (DRL), allowing models to use feedback to dynamically search for better join orders and enhance performance over time. Existing research primarily focuses on capturing join order sequences and their representations at various levels, with limited comparative analysis of reinforcement learning methods. In this paper, we propose GTDD, a novel framework that integrates Graph Neural Networks (GNN), Treestructured Long Short-Term Memory (Tree LSTM), and DuelingDQN. We conduct a series of experiments that demonstrate a clear advantage of GTDD over state-of the-art techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。