Method and software for database performance optimization

Authors

DOI:

https://doi.org/10.34185/1562-9945-3-164-2026-18

Keywords:

database optimization, SQL dump, static analysis, indexing, structural analysis, server configuration, comprehensive performance index, FastAPI, React, DBMS

Abstract

Modern approaches to database performance optimization are mostly focused on individual aspects – indexing, SQL query optimization, or server environment configuration which forces administrators to use multiple specialized tools simultaneously and significantly increases the likelihood of missing critical deficiencies in the database structure or configuration. The problem of comprehensive automated database analysis without direct server access remains unsolved, as most existing solutions require either a live connection to the database server or execution of profiling queries to collect runtime statistics, which makes them inapplicable in scenarios where direct access to the production system is restricted for security or technical reasons.

This paper proposes a combined algorithmic-programmatic method that integrates three analytical modules for static analysis – indexing, structural, and configuration as well as an additional interactive module for real-time SQL query refactoring. The three core modules contribute to the composite performance index (CPI), while the refactoring module operates independently as a real-time advisory tool. The method is based on static analysis of SQL dumps and server configuration files without deploying the database, which allows it to be applied in offline scenarios. Each module operates independently and targets a specific aspect of database performance: the indexing module detects missing or redundant indexes, the structural module verifies compliance with normal forms and identifies inefficient data types, the configuration module compares server parameters against recommended values, and the refactoring module provides real-time recommendations as the user writes SQL expressions.

To quantitatively evaluate optimization effectiveness, a composite performance index (CPI) is introduced, which aggregates three partial scores – indexing efficiency, structural efficiency, and configuration efficiency – using empirically determined weight coefficients of 0.40, 0.35, and 0.25 respectively. The CPI is normalized in the range from 0 to 1 and is calculated both before and after applying the recommendations, enabling objective comparison of the database state without executing any queries against the live system.

The method is implemented as a client-server web application with a React-based frontend and a FastAPI backend, supporting role-based access control with user and administrator roles. The proposed approach achieves comprehensive automated database optimization and generates actionable recommendations for the administrator without significant additional administration overhead.

References

Chaudhuri, S., & Weikum, G. (2000). Rethinking database system architecture: Towards a self-tuning RISC-style database system. Proceedings of the VLDB Endowment.

Chaudhuri, S., & Narasayya, V. (1998). An efficient cost-driven index selection tool for Microsoft SQL Server. VLDB Journal.

Gupta, H. (1997). Selection of views to materialize in a data warehouse. Proceedings of the International Conference on Database Theory (ICDT).

Ashari, R., et al. (2021). A systematic literature review: Database optimization techniques. IEEE. https://doi.org/10.1109/iccsai53272.2021.9609766

Chaudhuri, S. (1998). An overview of query optimization in relational systems. ACM PODS.

Győrödi, C. A., et al. (2021). Performance impact of optimization methods on MySQL document-based and relational databases. Applied Sciences.

https://doi.org/10.3390/app11156794

Kunjir, M., et al. (2020). Learning-based query optimization. Proceedings of the ACM SIGMOD International Conference on Management of Data. https://doi.org/10.1145/3318464

Leis, V., et al. (2015). How good are query optimizers, really? Proceedings of the VLDB Endowment, 8(1), 121–132. https://doi.org/10.14778/2850583.2850594

Gao, P., et al. (2023). Research on performance optimization of MySQL database. IEEE. https://doi.org/10.1109/ICIBA56860.2023.10165291

Mozaffari, M., et al. (2024). Self-tuning database systems: A systematic literature review of automatic database schema design and tuning. ACM. https://doi.org/10.1145/3665323

Published

2026-04-30