Automatic database indexing using reinforcement learning
DOI: 10.21293/1818-0442-2026-29-2-116-128
DOI: 10.21293/1818-0442-2026-29-2-116-128
Abstract: Relevance. Indexes have a significant impact on the performance of database management systems, and their automatic selection under changing workloads remains a challenging multicriteria problem. Purpose of the study. The purpose of the study is to develop a query-oriented method for automatic index management based on reinforcement learning for operation in a high-load environment. Methods. The study employs the following tools and approaches: formulation of the problem as a Markov decision process, comparative analysis of modern indexing approaches, the query optimizer's costing mechanism, DBMS operational telemetry, and validation of results on TPC-H workloads. Scientific novelty. An automatic indexing method based on reinforcement learning is proposed, in which the indexing action is selected in the local context of the query being optimized, while the optimizer's surrogate reward is separated from the actual reward calculated from the statistics of executed queries. Results. In sequential, concurrent, and synthetic scenarios, the reinforcement learning strategy outperformed baseline indexing in terms of query execution time and aggregate performance metrics. Practical significance. The proposed method can be used as a component of a safe automatic indexing loop in industrial DBMSs.
Keywords: reinforcement learning, automatic indexing, query-oriented index selection, dynamic index tuning, physical database design, query execution statistics, query cost estimation
For citation:
Kolomiets V. V. Automatic database indexing using reinforcement learning. Doklady Tomskogo gosudarstvennogo universiteta sistem upravleniya i radioelektroniki, 2026, vol. 29, no. 2, pp. 116–128. DOI: 10.21293/1818-0442-2026-29-2-116-128
Authors and copyright holders:
Executive Secretary of the Editor’s Office
Editor’s Office: 40 Lenina Prospect, Tomsk, 634050, Russia
Phone / Fax: + 7 (3822) 701-582
Executive Secretary of the Editor’s Office
Editor’s Office: 40 Lenina Prospect, Tomsk, 634050, Russia
Phone / Fax: + 7 (3822) 51-21-21 / 51-43-02