arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.01709cs.DBcs.CLcs.LG
收藏

通过大型语言模型解释 HTAP 系统中的查询性能

Query Performance Explanation through Large Language Model for HTAP Systems

Duke University(杜克大学);ByteDance, Inc(字节跳动公司)

Haibo Xiu, Li Zhang, Tieying Zhang, Jun Yang, Jianjun Chen

AI总结:

针对 HTAP 系统中跨 OLAP/OLTP 引擎查询计划性能差异难以解释的问题,提出基于 RAG、tree-CNN 检索与 LLM 生成的性能解释框架。

摘要:

在混合事务与分析处理(HTAP)系统中,用户往往难以理解为何来自一个引擎(OLAP 或 OLTP)的查询计划比来自另一个引擎的查询计划慢得多。尽管优化器通过 EXPLAIN 函数提供计划细节,但这些解释对非专家而言通常过于技术化,并且对不同引擎间性能差异的洞察有限。为解决这一问题,我们提出了一种利用大型语言模型(LLM)解释 HTAP 系统中查询性能的新颖框架。该框架基于检索增强生成(RAG),构建了一个存储历史查询执行和专家整理解释的知识库。为高效检索相关知识,查询计划通过轻量级 tree-CNN 分类器进行嵌入。这种增强使 LLM 能够生成清晰、具备上下文感知的引擎间性能差异解释。我们的方法展示了 LLM 在混合引擎系统中的潜力,为数据库优化和用户支持的进一步发展铺平了道路。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑