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
- 인프런
- Thymeleaf
- db
- 알고리즘
- AOP
- kotlin
- Spring Boot
- JDBC
- spring
- 스프링 핵심 기능
- Proxy
- pointcut
- springdatajpa
- SpringBoot
- jpa
- JPQL
- Servlet
- Android
- 자바
- 김영한
- 그리디
- Exception
- 백준
- http
- java
- 스프링
- 스프링 핵심 원리
- QueryDSL
- transaction
- Greedy
Archives
- Today
- Total
목록성능최적회 (1)
개발자되기 프로젝트
컬렉션 조회 : 최적화
1. 최적화 public List findAllByDto_optimization() { List result = findOrders(); List orderIds = toOrderIds(result); Map orderItemMap = findOrderItemMap(orderIds); //메모리에 map을 올려놓고 찾아서 꽂아넣기. result.forEach(o -> o.setOrderItems(orderItemMap.get(o.getOrderId()))); return result; } private List toOrderIds(List result) { List orderIds = result.stream().map(o -> o.getOrderId()) .collect(Collectors.toList..
인프런/[인프런] Springboot와 JPA활용 2
2021. 8. 25. 00:31