Abstract
AbstractThe join order has a huge impact on the execution time of a query, such that finding an optimal join order plays a crucial role in query optimization. However, join order optimization is known to be NP-hard. Hence, in this paper, we propose an approach for accelerating join order optimization by quantum computers. We extend our previous approach supporting bushy join trees by splitting the search space of possible join orders and solving each of these subspaces on currently available quantum computers to optimize the join of more relations than our previous approach. We have integrated our approach to quantum query optimization in the relational database management system PostgreSQL to conduct studies with real-world queries. In our experiments, we show that we can perform join order optimization up to 7 relations for real-world queries using quantum annealing and up to 8 relations for artificial queries using simulated annealing with a reasonable number of QUBO problems solved by D‑Wave’s Quantum Annealer. Furthermore, we show that our approach can be also used to perform join-order for queries joining five relations on circuit-based quantum computers running the quantum approximate optimization algorithm (QAOA) and variational quantum eigensolver (VQE) approaches.
Publisher
Springer Science and Business Media LLC
Reference42 articles.
1. Scheufele W, Moerkotte G (1997) On the complexity of generating optimal plans with cross products. In: Proceedings of the sixteenth ACM SIGACT-SIGMOD-SIGART symposium on principles of database systems, pp 238–248
2. Nayak N, Rehfeld J, Winker T, Warnke B, Çalikyilmaz U, Groppe S (2023) Constructing optimal bushy join trees by solving qubo problems on quantum hardware and simulators. In: Proceedings of the international workshop on big data in emergent distributed environments, pp 1–7
3. Lewis MW, Glover FW (2017) Quadratic unconstrained binary optimization problem preprocessing: theory and empirical analysis. https://arxiv.org/abs/1705.09844 (CoRR abs/1705.09844). Accessed 14.03.2024
4. Peruzzo A, McClean J, Shadbolt P, Yung M-H, Zhou X-Q, Love PJ, Aspuru-Guzik A, O’Brien JL (2014) A variational eigenvalue solver on a photonic quantum processor. Nat Commun. https://doi.org/10.1038/ncomms5213
5. Farhi E, Goldstone J, Gutmann S (2014) A quantum approximate optimization algorithm. ArXiv. https://doi.org/10.48550/ARXIV.1411.4028 (https://arxiv.org/abs/1411.4028)