Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

상태별 블록 조회 성능 최적화 #235

Open
giwoong01 opened this issue Dec 5, 2024 · 0 comments
Open

상태별 블록 조회 성능 최적화 #235

giwoong01 opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels
Refactor 코드 리팩토링

Comments

@giwoong01
Copy link
Member

giwoong01 commented Dec 5, 2024

어떤 기능인가요?

상태별 블록 조회 성능 최적화를 진행합니다.

k6 부하테스트 툴을 이용하여 성능 테스트를 진행합니다.

2가지 방법으로 진행합니다.

  1. 쿼리를 최적화합니다.
  2. DB 인덱스를 적용합니다.

자세한 내용은 아래 블로그 작성했습니다.

블로그 1편
블로그 2편

@giwoong01 giwoong01 added the Refactor 코드 리팩토링 label Dec 5, 2024
@giwoong01 giwoong01 self-assigned this Dec 5, 2024
giwoong01 added a commit to giwoong01/Kkeujeok_Backend that referenced this issue Dec 5, 2024
쿼리 로직을 수정하여 성능을 최적화합니다.
D-Day 계산을 util로 분리합니다.
@giwoong01 giwoong01 moved this to In Progress in Kkeujeok-Backend Dec 5, 2024
giwoong01 added a commit that referenced this issue Dec 6, 2024
* Refactor(#197): 개인 대시보드 상세 조회 예외 검증 수정, 블록 권한 제어, 휴지통 전체 삭제 기능 추가, 삭제된 블록 30일 이후 영구 삭제 기능 추가

- 개인 대시보드 상태가 private 일 때만 검증, public 이라면 친구, 모든 사람이 조회 가능하게 변경합니다.
- 본인 또는 팀의 블록이 아니면 제어 불가능합니다.
- 휴지통에 있는 블록은 30일이 지나면 영구삭제됩니다.
- 휴지통 전체 삭제 API를 추가합니다.

* Refactor: 조회 로직 트랜젝션 어노테이션 제거

* Refactor: 검증 로직 컨벤션 수정

* Refactor: 블록 상태별 조회 쿼리 수정

성능 최적화를 위한 쿼리를 수정합니다.

* Refactor(#235): 상태별 블록 조회 수정

쿼리 로직을 수정하여 성능을 최적화합니다.
D-Day 계산을 util로 분리합니다.
giwoong01 added a commit to giwoong01/Kkeujeok_Backend that referenced this issue Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor 코드 리팩토링
Projects
Status: In Progress
Development

No branches or pull requests

1 participant