Comparing performance between Pure-SQL and ORM libraries: Is there a performance difference between Pure-SQL and ORM libraries?
2026 (English)Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE credits
Student thesis
Abstract [en]
As the complexity of Pure-SQL queries continues to increase, the impact they have on the readability and maintainability of code also continues to increase. Object Relational Mapping (ORM) offers a means of abstracting the SQL queries, turning them into more easily handled objects. The main drawback of ORMs is the performance impact from the addition of an abstraction layer to transform ORM objects into SQL queries for interactions with a server. The study aims to measure the impact of two ORM libraries, Prisma and Sequelize, with Pure-SQL as a baseline using the metrics of response time and memory usage through a quasi-experiment.
The response time results show that while generally close, as expected Pure-SQL has the lowest response time across all query operations and is statistically different from both Prisma and Sequelize. Memory usage results also show that Pure-SQL is the most memory efficient and is also statistically different from Prisma and Sequelize.
Place, publisher, year, edition, pages
2026. , p. 53, ii
Keywords [en]
ORM, SQL, CRUD, TypeScript, database, query performance, quasi-experiment
National Category
Information Systems, Social aspects
Identifiers
URN: urn:nbn:se:his:diva-26992OAI: oai:DiVA.org:his-26992DiVA, id: diva2:2095753
Subject / course
Informationsteknologi
Educational program
Computer Science - Specialization in Systems Development
Supervisors
Examiners
2026-08-272026-08-272026-08-27Bibliographically approved