Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Article . 2026
License: CC BY
Data sources: ZENODO
ZENODO
Article . 2026
License: CC BY
Data sources: Datacite
ZENODO
Article . 2026
License: CC BY
Data sources: Datacite
versions View all 2 versions
addClaim

Evaluating the Performance, Scalability, and Maintainability of Stored Procedures in Modern Relational Databases: Practical Insights and Benchmarks

Authors: Sedaqat, Mohammad Amir;

Evaluating the Performance, Scalability, and Maintainability of Stored Procedures in Modern Relational Databases: Practical Insights and Benchmarks

Abstract

In several production systems we worked with, stored procedures were often treated as legacy artifacts rather than active performance tools, even though our experience showed that they could still contribute meaningfully to performance and maintainability when used carefully. Even with all these benefits, many organizations rely on inline SQL queries embedded in application code, the program’s logic gets all messed up, checks all over the place, and easier to hack. Stored Procedures (SPs) remain a cornerstone in relational database management, providing encapsulation of SQL logic, enhancing performance, and improving security [1,2]. Despite their long history, SPs are still relevant in modern applications, particularly in cloud-native architectures, high-concurrency OLTP systems, and microservices-based platforms [3,4]. We look at the performance, scalability, and maintainability of SPs in SQL Server 2022 and PostgreSQL 15. Using realistic workloads, including HammerDB simulations for OLTP and TPC-H derived queries for analytical scenarios [5,6], we combine quantitative benchmarking with human-centric observations. Real-world challenges, such as bulk operation bottlenecks, transaction management, and exception handling, are explicitly discussed. In here we analyzed that well-designed SPs can improve operation performance by 25–45%, while poorly structured SPs may degrade performance and reduce maintainability. We provide actionable recommendations for developers and database administrators, emphasizing the integration of empirical practice with theoretical knowledge

Keywords

Stored Procedures, SQL Server, Security, PostgreSQL, Performance, Scalability, Maintainability, Microservices, Benchmarking., Stored Procedures, SQL Server, Security, PostgreSQL, Performance, Scalability, Maintainability, Microservices, Benchmarking.

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average
Green