Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

아파트 목록 조회 기능 성능 개선 필요 #10

Open
popotec opened this issue Nov 30, 2021 · 2 comments
Open

아파트 목록 조회 기능 성능 개선 필요 #10

popotec opened this issue Nov 30, 2021 · 2 comments

Comments

@popotec
Copy link
Collaborator

popotec commented Nov 30, 2021

부하테스트 결과, 아파트 목록 조회의 성능 개선이 필요하다고 판단됨

  • [방법1] 시스템 전반에 사용되는 데이터이고, 변경될 이유는 없는 데이터여서 서버 구동시 메모리에 캐싱해두고 사용
  • [방법2] 조회시 페이징을 통해 처리량 자체를 줄임

부하테스트 진행 내역 참고

@popotec
Copy link
Collaborator Author

popotec commented Jan 7, 2022

[방법2] 페이징을 우선 적용 해보고자 함.
=> pageSize는 기본 30으로 설정.

[방법1]은 프로젝트 2단계(JPA로 전환하고 프로젝트 보완) 진행시에 적용 예정.
=> 외부 캐싱용 저장소 redis를 이용

@popotec
Copy link
Collaborator Author

popotec commented Jan 7, 2022

[방법2] 페이징 적용 완료

  • Pageable 인터페이스를 활용하여 페이징 파라미터를 주입받음
  • size, pageNumber를 계산하여 쿼리에 전달할 limit, offset 계산
    • limit, offset 은 값 객체로 생성

@popotec popotec mentioned this issue Jan 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant