We have so far taken a quick walkthrough of the Spring Data JPA, with mostly positive use cases. There are also a few downsides to use an ORM framework. With today’s growing demand for scaling applications, it becomes important to discuss such issues with ORMs. This chapter considers the performance-related problems of ORMs when applications grow to a scale beyond ordinary limits:
For each operation, the ORM framework has to manage the lifecycle of an entity, leading to extra overhead. As an example, if the entity is transient, persistent, or detached, Hibernate ...