Query Performance Explanation through Large Language Model for HTAP Systems

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Xiu, Haibo, Zhang, Li, Zhang, Tieying, Yang, Jun, Chen, Jianjun
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912140955222016
author Xiu, Haibo
Zhang, Li
Zhang, Tieying
Yang, Jun
Chen, Jianjun
author_facet Xiu, Haibo
Zhang, Li
Zhang, Tieying
Yang, Jun
Chen, Jianjun
contents In hybrid transactional and analytical processing (HTAP) systems, users often struggle to understand why query plans from one engine (OLAP or OLTP) perform significantly slower than those from another. Although optimizers provide plan details via the EXPLAIN function, these explanations are frequently too technical for non-experts and offer limited insights into performance differences across engines. To address this, we propose a novel framework that leverages large language models (LLMs) to explain query performance in HTAP systems. Built on Retrieval-Augmented Generation (RAG), our framework constructs a knowledge base that stores historical query executions and expert-curated explanations. To enable efficient retrieval of relevant knowledge, query plans are embedded using a lightweight tree-CNN classifier. This augmentation allows the LLM to generate clear, context-aware explanations of performance differences between engines. Our approach demonstrates the potential of LLMs in hybrid engine systems, paving the way for further advancements in database optimization and user support.
format Preprint
id arxiv_https___arxiv_org_abs_2412_01709
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Query Performance Explanation through Large Language Model for HTAP Systems
Xiu, Haibo
Zhang, Li
Zhang, Tieying
Yang, Jun
Chen, Jianjun
Databases
Computation and Language
Machine Learning
In hybrid transactional and analytical processing (HTAP) systems, users often struggle to understand why query plans from one engine (OLAP or OLTP) perform significantly slower than those from another. Although optimizers provide plan details via the EXPLAIN function, these explanations are frequently too technical for non-experts and offer limited insights into performance differences across engines. To address this, we propose a novel framework that leverages large language models (LLMs) to explain query performance in HTAP systems. Built on Retrieval-Augmented Generation (RAG), our framework constructs a knowledge base that stores historical query executions and expert-curated explanations. To enable efficient retrieval of relevant knowledge, query plans are embedded using a lightweight tree-CNN classifier. This augmentation allows the LLM to generate clear, context-aware explanations of performance differences between engines. Our approach demonstrates the potential of LLMs in hybrid engine systems, paving the way for further advancements in database optimization and user support.
title Query Performance Explanation through Large Language Model for HTAP Systems
topic Databases
Computation and Language
Machine Learning
url https://arxiv.org/abs/2412.01709