JPA : N + 1 문제 원인- 하나의 부모 엔터티를 조회 하면, 관련된 N개의 자식 엔터티를 개별적으로 조회 하면서 총 N+1 번의 쿼리가 실행- JPA에서 Lazy Loading을 사용할 때 발생하는 문제문제발생 예제@Entity@Getter @Setterpublic class Notice { @Id @GeneratedValue private Long id; private String title; @OneToMany(mappedBy = "notice", fetch = FetchType.LAZY) private List noticeFiles = new ArrayList();}@Entity@Getter @Setterpublic class NoticeFile { ..