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

[refactor] 홈 조회에서의 schedule 데이터의 반복 쿼리 개선 #308

Open
1 task done
hoonyworld opened this issue Jan 24, 2025 · 0 comments · May be fixed by #312
Open
1 task done

[refactor] 홈 조회에서의 schedule 데이터의 반복 쿼리 개선 #308

hoonyworld opened this issue Jan 24, 2025 · 0 comments · May be fixed by #312
Assignees
Labels
enhancement performance enhancement refactor 🔁 refactor 동훈🐻

Comments

@hoonyworld
Copy link
Member

hoonyworld commented Jan 24, 2025

Feature Issue 📌

  • 홈 조회 시, Performance 데이터 조회를 위한 1개의 쿼리와 함께, 각 Performance에 대한 Schedule 데이터를 조회하기 위해 scheduleService.getMinDueDateForPerformance()가 개별 호출되며 N번 실행되는 상황입니다.
  • 단지 Schedule 데이터의 minDueDate를 얻기 위해 N개의 추가 쿼리가 실행되고 있는 상황이기에 이를 1번의 쿼리로 가져오도록 리팩토링 합니다.

Todo ✔️

  • 홈 조회에서의 schedule 데이터의 반복 쿼리 개선
@hoonyworld hoonyworld added enhancement performance enhancement refactor 🔁 refactor 동훈🐻 labels Jan 24, 2025
@hoonyworld hoonyworld self-assigned this Jan 24, 2025
@hoonyworld hoonyworld changed the title [refactor] 홈 조회에서의 schedule 데이터의 N+1 개선 [refactor] 홈 조회에서의 schedule 데이터의 반복 쿼리 개선 Feb 24, 2025
@hoonyworld hoonyworld reopened this Feb 24, 2025
hoonyworld added a commit that referenced this issue Feb 24, 2025
- 데이터가 늘어날 수록 로그가 방대하게 늘어나는 문제로 인해 debug 레벨로 변경
hoonyworld added a commit that referenced this issue Feb 24, 2025
hoonyworld added a commit that referenced this issue Feb 24, 2025
…eDateDto 추가

- QueryDSL의 `@QueryProjection`을 활용하여 생성자를 통해 필드를 초기화할 수 있도록 설계
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement performance enhancement refactor 🔁 refactor 동훈🐻
Projects
None yet
1 participant