Java/JVM

Hibernate N+1 Query Problem: Causes, Solutions and Production Best Practices

Introduction A production incident often starts with something that looks harmless. A developer ships a Spring Boot API to “Return all customers with their orders.” The code is simple, the response looks correct and everything works perfectly in development. Then traffic grows and the same endpoint causes: Database CPU spikes Connection pool exhaustion Higher API […]

Rajdeep Dabral
Rajdeep Dabral
Read

Java/JVM

JPA Criteria Api – A code alternate to raw SQL queries

Introduction JPA is a hibernate specification that helps us in managing, accessing & persisting data between RDBMS and Java objects & one of its main features is Criteria API, which is a pre-defined API and was introduced in JPA 2.0. It defines platform-independent criteria queries written in Java and enables us to achieve the same […]