Mathematical Model of the Mechanism for Generating SQL Questions in the ORM Layer of the Hibernate Framework

Cover Page

Cite item

Full Text

Open Access Open Access
Restricted Access Access granted
Restricted Access Subscription or Fee Access

Abstract

Problem statement. Modern ORM frameworks, such as Hibernate, automate the process of interaction with databases, which significantly simplifies development. However, their performance, in particular the speed of generating SQL queries, can significantly depend on the structure of the input data, its volume, and caching settings. Insufficient understanding of these factors can lead to unreasonable delays in application operation. Goal. To study the influence of the structure and size of the input data on the process of generating SQL queries in the ORM layer of the Hibernate framework, and to evaluate the role of caching in optimizing execution time. Results. The study identified the key components involved in generating SQL queries. A mathematical model was developed that describes the query generation time depending on the input data and caching settings. The model allows predicting the performance of the ORM layer for various configurations. Practical significance. The results can be used to optimize the operation of applications using Hibernate, as well as to select optimal caching parameters and data organization. This is especially important for highly loaded systems where performance is critical.

Full Text

Restricted Access

About the authors

Boris S. Goryachkin

Bauman Moscow State Technical University

Author for correspondence.
Email: bsgor@mail.ru
ORCID iD: 0000-0002-0852-4162
SPIN-code: 5465-3012

Cand. Sci. (Eng.), Associate Professor

Russian Federation, Moscow

Yulia V. Svetasheva

Bauman Moscow State Technical University

Email: svetasheva2001@gmail.com
ORCID iD: 0009-0002-0470-0998
Russian Federation, Moscow

References

  1. Goryachkin B.S., Hanmurzin T.I. Improving the efficiency of working with a web resource due to the tools of a system programmer. Dynamics of Complex Systems – 21st Century. 2022. Vol. 16. No. 3. Pp. 26–39. doi: 10.18127/j19997493-202203-03.
  2. Grigoriev Yu.A. Estimation of execution time of SQL queries to databases. Mechanical Engineering and Computer Technologies. 2012. No. 01.
  3. Gudilin D.S., Zvonarev A.E., Goryachkin B.S., Lychagin D.A. Relational database performance comparation. In: 5th International Youth Conference on Radio Electronics, Electrical and Power Engineering (REEPE). IEEE, 2023. Vol. 5. Pp. 1–5.
  4. Eliseeva E.A., Goryachkin B.S., Vinogradova M.V. Research of DBMS performance when working with cluster databases based on ergonomic analysis. StudNet. 2022. Vol. 5. No. 4. Pp. 2888–2910.

Supplementary files

Supplementary Files
Action
1. JATS XML
2. Fig. 1. Interaction with a database through an ORM layer

Download (126KB)
3. Fig. 2. Dependence of generation time on the number of fields in the table

Download (105KB)
4. Fig. 3. Dependence of generation time on complex filtering conditions

Download (100KB)
5. Fig. 4. Dependence of generation time on the number of subqueries

Download (91KB)
6. Fig. 5. Dependence of query generation time on the number of fields

Download (136KB)
7. Fig. 6. Dependence of query generation time on the number of complex filters

Download (121KB)
8. Fig. 7. Dependence of query generation time on the number of subqueries

Download (103KB)
9. Fig. 8. Dependence of query generation time on the number of fields

Download (120KB)
10. Fig. 9. Dependence of query generation time on the number of complex filters

Download (116KB)
11. Fig. 10. Dependence of query generation time on the number of subqueries

Download (88KB)