public class NPlusOneQueryEntityFetchingEvent extends SessionEvent
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.Event.PriorityHIDDEN_DESCRIPTION| Constructor and Description |
|---|
NPlusOneQueryEntityFetchingEvent() |
| Modifier and Type | Method and Description |
|---|---|
Event.Priority |
getPriority()
Get the
Event.Priority of this Event |
public Event.Priority getPriority()
Event.Priority of this EventgetPriority in interface EventgetPriority in class SessionEventEvent.Priority of this EventCopyright © 2026. All rights reserved.