JPA (Java Persistenc API)
1:N fetchjoin 시 paging 이 안되는 사례
컬렉션을 조인할 때 페이징의 기준이 되는 1에 해당하는 엔티티 단위로 페이징을 자를 수 없기 때문에 , 이 경우 1을 모두 가져온 후 메로리에 올려 놓고 페이징 처리를 함, 이 때문에 데이터가 많을 경우 Full Garbage Collection을 유발할 위험이 높음
-
로그 (WARN)
HHH000104: firstResult/maxResults specified with collection fetch; applying in memory!
applying in memmory 관련된 hibernate Message Code
-
소스 위치: org.hibernate.internal.CoreMessageLogger
-
104
-
firstResult/maxResults specified with collection fetch; applying in memory!
-
-
180
-
FirstResult/maxResults specified on polymorphic query; applying in memory!
-
-