Spring Hibernate

Spring Hibernate Integration

N+1 problem in Hibernate & Spring Data JPA

Carvia Tech | October 03, 2020 | 4 min read | 3,088 views

N+1 problem is a performance issue in Object Relational Mapping that fires multiple Select Queries in database for a single select query at application layer. Hibernate provides multiple ways to identify and prevent this problem.

Read Article

Table backed global counter in spring hibernate

Carvia Tech | August 01, 2020 | 4 min read | 1,952 views

How to implement thread safe table backed global counter in spring hibernate

Read Article

Prevent Lost Updates in Database Transaction using Spring Hibernate

Carvia Tech | August 31, 2019 | 5 min read | 3,933 views

In this article we will explore strategies provided by Spring boot, Spring data jpa, hibernate to prevent lost concurrent updates - JPA Optimistic Locking & JPA Pessimistic Locking.

Read Article

Prevent Order Placement if Produce Price Changes inbetween

Carvia Tech | December 31, 2017 | 1 min read | 6 views

Prevent Order Placement if Produce Price Changes inbetween

Read Article

No two threads shall pick up the same task from database table using Hibernate

Carvia Tech | December 31, 2017 | 1 min read | 9 views

No two threads shall pick up the same task from database table using Hibernate

Read Article