Hybrid SQL/NoSQL Architecture for Optimizing the Performance of IoT Air Quality Monitoring

Keywords: PostgreSQL, MongoDB, NoSQL, IoT, air quality monitoring, hybrid architecture, indexing

Abstract

The rapid growth of IoT devices and their integration in various ecosystems creates a need for high scalability, efficient storage, and fast processing of large amounts of data in real-time. Due to the high frequency of arrival and variety of data formats from sensors, the storage architecture must be flexible and provide high performance for write operations. This creates a challenge in choosing the optimal database management system that would combine the speed of processing large volumes of data with the ability to execute complex analytical queries on historical data effectively. The article presents the results of an experimental study of the performance of the PostgreSQL relational database and the MongoDB document-oriented database in the context of an IoT-based air quality monitoring system. A series of controlled load tests was conducted with varying data volume (100-10,000 records) and the number of parallel threads (1-50). The results show a nine-fold advantage of MongoDB during write operations (34.56 ms vs. 338.16 ms on average) and an almost two-fold advantage of PostgreSQL during read operations (14.41 ms vs. 25.98 ms). Based on the obtained data, a hybrid approach is proposed that combines MongoDB for operational data collection and PostgreSQL for long-term storage and analytics. Such integration of relational and NoSQL databases is a technically optimal and economically beneficial solution. A cost reduction of 30-40% is confirmed, which makes it attractive for real implementation on an industrial scale

References

1. Нежуренко О. Оптимізація зберігання даних IoT-пристроїв у розподілених базах даних: виклики масштабування та ефективності. Наука і техніка сьогодні. 2025. № 7(48).
2. Ma X. The analysis of the internet of things database query and optimization using deep learning network model. PLOS ONE. 2024. Vol. 19, no. 6. P. e0306291.
3. Axell, C., Schøien, E., Thon, I. L., Vågene, L. O., & Tveiten, L. Insertion speed of indexed spatial data: comparing MySQL, PostgreSQL and MongoDB. 2022.
4. Al Maamari S. R. S., Nasar M. A Comparative Analysis of NoSQL and SQL Databases: Performance, Consistency, and Suitability for Modern Applications with a Focus on IoT. East Journal of Computer Science. 2025. Vol. 1, no. 2. P. 10–15.
5. OUKHOUYA, Lamya, HADDADI, Anass El, ER-RAHA, Brahim, et al. Designing Hybrid Storage Architectures with RDBMS and NoSQL Systems: A Survey. International Conference on Advanced Intelligent Systems for Sustainable Development. Cham: Springer Nature Switzerland, 2022. p. 332-343.
Published
2025-12-05
How to Cite
Lavrenchuk , S., Kaidyk , O., Melnyk, K., Konkevych, L., & Luk’yanchuk , Y. (2025). Hybrid SQL/NoSQL Architecture for Optimizing the Performance of IoT Air Quality Monitoring. COMPUTER-INTEGRATED TECHNOLOGIES: EDUCATION, SCIENCE, PRODUCTION, (61), 112-118. https://doi.org/10.36910/6775-2524-0560-2025-61-16
Section
Computer science and computer engineering