Query Performance Explanation through Large Language Model for HTAP Systems
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 12 of its 23 references that are in the map. First posted on arXiv 2 Dec 2024.
Builds on
12 of 23 references.
References · 12
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
- 2020Bao: Learning to Steer Query Optimizerscited by 62
- 2023D-Bot: Database Diagnosis System using Large Language Modelscited by 28
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2024Evaluating the Data Model Robustness of Text-to-SQL Systems Based on Real User Queriescited by 12
- 2023COOOL: A Learning-To-Rank Approach for SQL Hint Recommendationscited by 4
- 2024Evaluating SQL Understanding in Large Language Modelscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Data Agents: Agentic Data Systemscited by 0
- 2026Data Agents: Agentic Data Systems21 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2025REIS: A High-Performance and Energy-Efficient Retrieval System with In-Storage Processing
- 2024A Survey of Query Optimization in Large Language Models
- 2025RAGO: Systematic Performance Optimization for Retrieval-Augmented Generation Serving
- 2025Higress-RAG: A Holistic Optimization Framework for Enterprise Retrieval-Augmented Generation via Dual Hybrid Retrieval, Adaptive Routing, and CRAG
- 2026RAGPerf: An End-to-End Benchmarking Framework for Retrieval-Augmented Generation Systems
- 2026One Size Does Not Fit All! Dynamic Retriever and Generator Selection for RAG
- 2023Query Rewriting for Retrieval-Augmented Large Language Models
- 2025SEFRQO: A Self-Evolving Fine-Tuned RAG-Based Query Optimizer