Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 알고리즘
- spring
- 자바
- QueryDSL
- kotlin
- SpringBoot
- 김영한
- http
- jpa
- Spring Boot
- JDBC
- transaction
- 스프링 핵심 기능
- Servlet
- db
- 스프링
- Exception
- java
- Thymeleaf
- JPQL
- 그리디
- AOP
- 인프런
- 백준
- 스프링 핵심 원리
- springdatajpa
- pointcut
- Proxy
- Android
- Greedy
Archives
- Today
- Total
목록N+1 문제 (1)
개발자되기 프로젝트
지연로딩과 성능최적화(DTO, N+1)
1. DTO 로 변환해서 리턴. @GetMapping("/api/v2/simple-orders") public List odersV2(){ List orders = orderRepository.findAllByString(new OrderSearch()); List result = orders.stream() .map(o -> new SimPleOrderDto(o)) //map은 a를 b로 바꾸는 것. .collect(Collectors.toList()); return result; } @Data private class SimPleOrderDto { private Long orderId; private String name; private LocalDateTime orderDate; private Or..
인프런/[인프런] Springboot와 JPA활용 2
2021. 8. 22. 23:07