Class NPlusOneQueryEntityFetchingEvent

java.lang.Object
io.hypersistence.optimizer.core.event.AbstractEvent
io.hypersistence.optimizer.hibernate.event.session.SessionEvent
io.hypersistence.optimizer.hibernate.event.session.NPlusOneQueryEntityFetchingEvent
All Implemented Interfaces:
Event, Serializable

public class NPlusOneQueryEntityFetchingEvent extends SessionEvent
The NPlusOneQueryEntityFetchingEvent indicates that an entity has been fetched several times using secondary SQL queries instead of being fetched in one query using a JOIN FETCH clause. N+1 query issues can cause significant performance issues because, even if each query is fast to execute, doing that tens or hundreds of times just adds up, and the more the data grows with time, the bigger the performance penalty will get.
Since:
2.6.0
Author:
Vlad Mihalcea
See Also: