What is the N+1 query problem in JPA?
-
A
A bug where primary key generation fails for every Nth entity
-
B
A performance issue where fetching N entities triggers N additional queries to load each entity's lazy associations
-
C
A limitation where a session can process at most N+1 concurrent queries
-
D
A deadlock between a parent transaction and N child transactions