Repository logo

Query Execution Plan Search Space Enumeration by Reinforcement Learning

dc.contributor.authorLiu, Chang
dc.contributor.supervisorKantere, Verena
dc.date.accessioned2024-11-20T17:05:19Z
dc.date.available2024-11-20T17:05:19Z
dc.date.issued2024-11-20
dc.description.abstractJoin order selection, a critical subfield of query optimization, focuses on determining the optimal join sequence for SQL queries to minimize execution cost. This problem becomes increasingly challenging as the number of tables in a query expands, leading to an exponentially growing search space. Exhaustive enumeration of all possible join orders is computationally infeasible. Recent advances in join order selection have leveraged deep reinforcement learning (DRL) to address this challenge, offering dynamic and adaptive solutions that improve on traditional rule-based or cost-based approaches. This thesis proposes a DRL framework specifically designed for join order selection. Our approach reformulates join order selection as a sequential decision-making problem, where an agent learns to select joins by maximizing query performance. By integrating graph neural networks (GNN) to model relationships between tables and Tree-LSTM networks to capture the hierarchical nature of join sequences, we create informative representations. Additionally, we replace the vanilla DQN with a dueling-DQN to enhance training stability and convergence time. The DRL-based framework adaptively explores the search space and learns optimal join sequences through iterative interactions. Our experimental results demonstrate that our method consistently outperforms other baselines, including both traditional methods and other DRL-based techniques. This highlights the potential of reinforcement learning to significantly enhance query optimization, offering a more adaptive and efficient solution for join order selection.
dc.identifier.urihttp://hdl.handle.net/10393/49867
dc.identifier.urihttps://doi.org/10.20381/ruor-30693
dc.language.isoen
dc.publisherUniversité d'Ottawa / University of Ottawa
dc.subjectJoin Order Selection
dc.subjectDeep Reinforcement Learning
dc.subjectDueling-DQN
dc.titleQuery Execution Plan Search Space Enumeration by Reinforcement Learning
dc.typeThesisen
thesis.degree.disciplineGénie / Engineering
thesis.degree.levelMasters
thesis.degree.nameMCS
uottawa.departmentScience informatique et génie électrique / Electrical Engineering and Computer Science

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail ImageThumbnail Image
Name:
Liu_Chang_2024_thesis.pdf
Size:
3.21 MB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail ImageThumbnail Image
Name:
license.txt
Size:
6.65 KB
Format:
Item-specific license agreed upon to submission
Description: