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
- Proxy
- 김영한
- pointcut
- AOP
- java
- Servlet
- Thymeleaf
- Greedy
- kotlin
- Spring Boot
- spring
- SpringBoot
- db
- Exception
- springdatajpa
- 그리디
- JPQL
- 자바
- 알고리즘
- JDBC
- jpa
- 인프런
- transaction
- 스프링 핵심 기능
- Android
- 스프링
- http
- 스프링 핵심 원리
- QueryDSL
- 백준
Archives
- Today
- Total
목록카운트쿼리 (1)
개발자되기 프로젝트
CountQuery 최적화
1. CountQuery 최적화 PageableExecutionUtils.getPage(content, pageable, () -> ~.fetchCount()) CountQuery를 날릴려면 fetchCount()가 호출 되어야 함. PageableExecutionTuils.getPage()를 통해 count 쿼리가 생략 가능한 경우는 Countquery 생략 페이지 시작이면서 컨텐츠 사이즈가 페이지 사이즈보다 작을 때 마지막 페이지 일 때 (offset + 컨텐츠 사이즈를 더해서 전체 사이즈 구함) @Override public Page searchPageComplex(MemberSearchCondition condition, Pageable pageable) { //content를 바로 가져오고. L..
인프런/[인프런] QueryDsl
2021. 9. 5. 22:22