METHODS OF OPTIMISING QUERIES IN DISTRIBUTED DATABASES

Authors

DOI:

https://doi.org/10.35546/kntu2078-4481.2025.4.3.28

Keywords:

query optimisation, distributed databases, caching, materialisation, indexing, PostgreSQL

Abstract

The article provides a comprehensive study of the problem of optimizing query performance in distributed database systems, where architectural complexity, information fragmentation, and the necessity for coordination between numerous nodes significantly affect processing speed and stability. It has been determined that conventional approaches to executing multi-table queries, especially when working with large historical data collections, do not provide acceptable response times and result in significant computational costs. In this context, it is relevant to implement specialized optimization methods that reduce the number of reading operations, the volume of intermediate calculations, and the load on the network infrastructure. The article proposes an integrated approach that combines caching, indexing, and materialization of representations to achieve the maximum performance when processing complicated analytical queries in a distributed environment. The caching provides rapid retrieval of results without accessing the disk structures, the indexing speeds up the search and filtering by creating the specialized data structures, and the materialization eliminates the need to repeat complex join and aggregation operations by storing the results in the form of physically accessible tables. For the experimental part of the research, a representative multi-table database was used, which contains information about the company's employees, their salaries, and their affiliation with departments and divisions. Five different variants of the same query were executed: without optimization, after caching, after indexing, using materialized representation, and using a combination of all three methods. The experimental results demonstrate that although each method separately provides a noticeable acceleration of performance, the greatest effect is achieved when they are used simultaneously. The query execution time was decreased from 2831.869 ms to 0.076 ms, which is an increase in performance by more than 37,000 times. The data obtained confirm the existence of a synergistic effect and demonstrate the high practical importance of comprehensive optimization for the systems that work with heavy analytical loads in distributed data processing conditions. The presented approach can be used to modernize existing information systems and increase their efficiency when scaling.

References

Панасюк В. В., Майданюк В. П. Оптимізація продуктивності розподілених баз даних через розділення складних запитів. Матеріали LIV Всеукраїнської науково-технічної конференції підрозділів ВНТУ. 2025. URL: https://ir.lib.vntu.edu.ua/bitstream/handle/123456789/48587/23928.pdf?sequence=3&isAllowed=y (дата звернення: 27.11.2025).

Archana B., Vilas K., Madhukar S. QOTUM: The Query Optimizer for Distributed Database in Cloud Environment. TECHNICAL JOURNAL. 2024. Т. 18, вип. 1. С. 172–177. ISSN ISSN 1846‐6168 (Print), ISSN 1848‐5588 (Online). URL: https://doi.org/10.31803/tg-20230501083155.

Суліма С. В., Єрмолаєв О. Д. Метод оптимізації SQL запитів системи управління базами даних. Національний технічний університет України «КПІ імені Ігоря Сікорського». Київ, Україна, 2023. Т. 2, вип. 72 : Системи управління навігації та зв’язку Збірник наукових праць. С. 151–157. URL: https://doi.org/10.26906/SUNZ.2023.2.151.

Белоус Р., Крилов Є., Анікін В. Методи оптимізації запитів розподілених БД. Міжвідомчий науково-технічний збірник. 2021. Т. 2, вип. 39 : Адаптивні системи автоматичного управління. С. 3–11. ISSN 1560‐8956. URL: https://doi.org/10.20535/1560-8956.39.2021.247364.

Голубінка В., Худий А. Підвищення продуктивності запитів до баз даних: аналіз технік індексації. Вісник Національного університету “Львівська політехніка”. Львів, Україна, 2024. вип. 15 : Інформаційні системи та мережі. С. 65–73. URL: https://doi.org/10.23939/sisn2024.15.065.

Stewart N., Adams D., Foster U. Empirical Analysis of Query Optimization Strategies for Reducing Execution Latency in Large-Scale Databases. Journal of Innovation in Governance and business practices. 2025. Т. 1, вип. 1.

Uzzaman, A., Jim, M. M. I., Nishat, N., & Nahar, J. Optimizing SQL databases for big data workloads: techniques and best practices. Academic journal on business administration, innovation & sustainability. 2024. Т. 4, вип. 3. С. 15–29. ISSN 2997‐9552. URL: https://www.researchgate.net/profile/Janifer-Nahar/publication/381725561_OPTIMIZING_SQL_DATABASES_FORBIG_DATA_WORKLOADS_TECHNIQUES_AND_BEST_PRACTICES/links/667fcab2f3b61c4e2c99919b/OPTIMIZING-SQL-DATABASES-FORBIG-DATA-WORKLOADS-TECHNIQUES-AND-BEST-PRACTICES.pdf (дата звернення: 27.11.2025).

Downloads

Published

2025-12-31