N+1 Query Problem
- when an ORM, like hibernate, executes 1 query to retrieve the parent entity and N queries to retrieve the child entities.
- Example, we have users table and address table for each user
- In essence, this happens when we have @OneToMany() or similar relationship on ORM
- For Spring JPA, see JPA N+1 Query Problem Solution
- reference: