IEEE Access (Jan 2022)

RL_QOptimizer: A Reinforcement Learning Based Query Optimizer

  • Mohamed Ramadan,
  • Ayman El-Kilany,
  • Hoda M. O. Mokhtar,
  • Ibrahim Sobh

DOI
https://doi.org/10.1109/ACCESS.2022.3187102
Journal volume & issue
Vol. 10
pp. 70502 – 70515

Abstract

Read online

With the current availability of massive datasets and scalability requirements, different systems are required to provide their users with the best performance possible in terms of speed. On the physical level, performance can be translated into queries’ execution time in database management systems. Queries have to execute efficiently (i.e. in minimum time) to meet users’ needs, which puts an excessive burden on the database management system (DBMS). In this paper, we mainly focus on enhancing the query optimizer, which is one of the main components in DBMS that is responsible for choosing the optimal query execution plan and consequently determines the query execution time. Inspired by recent research in reinforcement learning in different domains, this paper proposes A Deep Reinforcement Learning Based Query Optimizer (RL_QOptimizer), a new approach to find the best policy for join order in the query plan which depends solely on the reward system of reinforcement learning. The experimental results show that a notable advantage of the proposed approach against the existing query optimization model of PostgreSQL DBMS.

Keywords