JPA N+1: 발생과 해결
EAGER fetch 시 posts 1번 SELECT + 각 post 의 author 마다 추가 SELECT 발생. fetch join 으로 1쿼리에 해결.
메타데이터
| ID | spring-jpa-n-plus-one |
| 카테고리 | flow |
| 버전 | v4 |
| 길이 | 16.0s (16000ms) |
| 구성 | 12 elements · 6 chapters · 9 effects |
| 태그 | #jpa #hibernate #n-plus-one #fetch #performance |
본문에 삽입
```anim:spring-jpa-n-plus-one
{}
```