일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- windows10
- 스프링에러
- gradle
- MySQL시작하기
- K8S
- Postman
- restful api
- spring
- pagination
- 이클립스
- intellij
- SpringBoot
- 우분투에war배포
- appleM1
- VUE
- MySQL
- SQL
- String
- frontend
- springMVC
- Lombok
- NullPointerException
- Seek_Keyset
- Java
- MYSQL에러
- minikube
- offset
- CloutNative
- wappalyzer
- DB생성
- Today
- Total
미운 오리 새끼의 우아한 개발자되기
[Spring Boot]Pagination- Offset vs. Seek/Keyset 본문
[Spring Boot]Pagination- Offset vs. Seek/Keyset
Serina_Heo 2020. 9. 16. 11:06Pagination을 할 때 크게 2가지 방법이 있다.
1.Offset
2.Seek/Keyset
'spring boot pagination'을 검색하면 대부분 offset을 이용한 pagination 예시인데 이 방법이 stack over flow에서 'terribly slow' 라고 한다.
Seek/keyset 방법을 쓰는게 낫다고 말하는 전문가들이 있다.
나도 아직 사용 전이라 더이상 자세하게 설명은 못하지만 아래 두 글이 도움이 많이 될 것 같아 첨부함.
- Reference
taylorbrazelton.com/posts/2019/03/offset-vs-seek-pagination/
Offset vs Seek/Keyset Pagination
Today I was focused on defining the standards for pagination on a new product and decided to dialog with a coworker. Below is the idea I threw out:
taylorbrazelton.com
stackoverflow.com/questions/109232/what-is-the-best-way-to-paginate-results-in-sql-server
What is the best way to paginate results in SQL Server
What is the best way (performance wise) to paginate results in SQL Server 2000, 2005, 2008, 2012 if you also want to get the total number of results (before paginating)?
stackoverflow.com
'Spring & Spring Boot > Spring Boot' 카테고리의 다른 글
[Spring Boot] Cloud Native Java - Test (1) 모의 기법 활용 (0) | 2022.09.27 |
---|---|
[Spring Boot] 스프링부트 설정 정보 우선순위 (0) | 2022.09.26 |
[Spring Boot] Test code 작성 @Mock vs. @MockBean (0) | 2022.08.03 |
[Spring Boot] snake_case를 camelCase 로 바꾸기 (0) | 2021.07.10 |
[Spring Boot]스프링 부트 테스트 코드 어노테이션(Spring Boot Test Code Annotation) (0) | 2020.09.23 |