How to Deal with N + 1 Query?
· 15 min read

Sometimes, you are asked about the N + 1 problem. So here we are, finding the answer by going deep down the rabbit hole.
Java Jakarta Persistence API
View All Tags
Sometimes, you are asked about the N + 1 problem. So here we are, finding the answer by going deep down the rabbit hole.

You've been warned. You've read the theory. Maybe you even read my previous article about why equals() and hashCode() are so treacherous on JPA entities.
But theory is easy to ignore. Log output is not.

Sometimes, you wonder why JPA entities are a very different beast type in the large world of Java.