Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

How Portable is ORM Query Performance? Evidence from Four Database Systems

Author 1: Mahmoud Nasr Author 2: Mohammed El-Ramly Author 3: Desoky Abdelqawy
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 17, No. 10 · Published 2026

DOI: 10.14569/IJACSA.2026.01710103

Abstract

A query that runs efficiently through an object-relational mapper (ORM) on one database may become a bottleneck on another. Such differences are easy to miss when ORM performance is summarized by a single overhead figure. This study examines how reliably performance carries across database systems by comparing Django and SQLAlchemy with handwritten SQL on four systems, with and without secondary indexes. Using TPC-H-derived queries and TPC-C-derived transactions, paired measurements and result-validation checks assess both relative overhead and actual delay. The findings show that small typical analytical overhead can coexist with substantial slowdowns for individual operations. Controlled comparisons identify SQL formulation and bound-versus-literal execution as the dominant components of the largest gaps examined. Transaction results show that a higher percentage overhead need not correspond to a greater delay. Together, these findings provide evidence for deciding which operations warrant closer investigation before deployment or database migration. Excluded formulations, conditional transaction estimates, and measurement variability constrain generalization.

Keywords

How to Cite this Article

Nasr, M., El-Ramly, M., & Abdelqawy, D. (2026). How Portable is ORM Query Performance? Evidence from Four Database Systems. International Journal of Advanced Computer Science and Applications, 17(10). https://doi.org/10.14569/IJACSA.2026.01710103

Nasr, Mahmoud, et al.. "How Portable is ORM Query Performance? Evidence from Four Database Systems." International Journal of Advanced Computer Science and Applications, vol. 17, no. 10, 2026, https://doi.org/10.14569/IJACSA.2026.01710103.

@article{Nasr2026,
  title     = {How Portable is ORM Query Performance? Evidence from Four Database Systems},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {17},
  number    = {10},
  year      = {2026},
  publisher = {The Science and Information Organization},
  author    = {Mahmoud Nasr and Mohammed El-Ramly and Desoky Abdelqawy},
  doi       = {10.14569/IJACSA.2026.01710103},
  url       = {https://doi.org/10.14569/IJACSA.2026.01710103}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.

Call for Papers - Important Dates

Volume 17 No. 12, December 2026
Paper Submission Due November 25, 2026
Review Notification December 15, 2026
Publication Date December 31, 2026