
JPA N+1 연관 관계에서 발생하는 이슈로 연관 관계가 설정된 엔티티를 조회할 경우 첫 번째 조회 + 해당 갯수(N) 만큼 조회되는 현상을 말한다. 테이블은 다음과 같이 구성되어 있습니다. @Test void test_query_check() { Account account = AccountTemplate.makeTestAccountForIntegration(); List organizations = new ArrayList(); for (int i = 0; i < 10; i++) { organizations.add(OrganizationTemplate.makeTestOrganizationForIntegration("테스트"+i)); } Account newAccount = accountReposito..
JVM/Spring
2021. 12. 3. 20:13
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Pattern
- django
- Celery
- ubuntu
- 프로그래머스
- 백준
- 알고리즘
- DRF
- 파이썬
- Linux
- 자바
- Collections
- 카카오
- postgres
- Command Line
- 그래프
- PostgreSQL
- Spring
- thread
- 면접
- env
- Java
- dockerignore
- docker-compose
- BFS
- setattr
- 2021 KAKAO BLIND RECRUITMENT
- Python
- headers
- docker
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함