@inproceedings{d49e8ce9064b4b2baadb1d04f83985d9,
title = "Q-Doctor: Retrieval-Augmented Diagnosis and Multi-agent Correction for Query Performance Anomalies",
abstract = "The stability and efficiency of database systems are critical to numerous data-intensive applications. However, it remains challenging to keep stable and high query performance, particularly under complex analytical workloads where subtle performance anomalies would cause significant latency and resource inefficiencies. Existing approaches often separate diagnosis from correction—focusing either on detecting execution anomalies or on black-box tuning techniques with limited interpretability and generality. In this paper, we propose Q-Doctor, a Query-level retrieval-augmented framework for Diagnosing and correcting database performance. First, Q-Doctor jointly encodes both query semantics and execution behaviors via a hybrid representation combining graph and tree neural encoders. This representation enables efficient retrieval of similar historical cases, which then guides an informed and fine-grained diagnosis. Moreover, a multi-agent correction module is introduced to collaboratively refine SQL hints and system configurations via reinforcement-guided iterations. Extensive experiments on well-established benchmarks demonstrate that Q-Doctor could accurately identify hidden performance anomalies and significantly improve query performance.",
keywords = "Knob Tuning, LLM, Query Diagnosis, Query Hint, RAG",
author = "Yiwen Han and Zhicheng Pan and Lixiang Chen and Chengcheng Yang and Rong Zhang and Xuan Zhou",
note = "Publisher Copyright: {\textcopyright} The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2026.; 31st International Conference on Database Systems for Advanced Applications, DASFAA 2026 ; Conference date: 27-04-2026 Through 30-04-2026",
year = "2026",
doi = "10.1007/978-981-92-0366-6\_32",
language = "英语",
isbn = "9789819203659",
series = "Lecture Notes in Computer Science",
publisher = "Springer Science and Business Media Deutschland GmbH",
pages = "526--542",
editor = "Hyungsoo Jung and Tianzheng Wang and Masashi Toyoda and Hyuk-Yoon Kwon and Jae-woong Lee",
booktitle = "Database Systems for Advanced Applications - 31st International Conference, DASFAA 2026, Proceedings",
address = "德国",
}