Skip to content

Commit

Permalink
refactor: 주간 개인 스케줄 조회 API에서 발생한 슬로우 쿼리 새건
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed Oct 1, 2024
1 parent 8b33526 commit 0e4e0cb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public List<Schedule> findWeeklyScheduleByUser(LocalDate startDate, LocalDate en
@Override
public List<Schedule> findWeeklyPersonalScheduleByUser(LocalDate startDate, LocalDate endDate, Long userId) {
return queryFactory.selectFrom(schedule)
.leftJoin(schedule.personalSchedule, personalSchedule)
.innerJoin(schedule.personalSchedule, personalSchedule)
.where(schedule.scheduleDate.between(startDate, endDate)
.and(personalSchedule.user.id.eq(userId)))
.fetch();
Expand Down Expand Up @@ -80,7 +80,6 @@ public List<Schedule> findOverlapSchedules(Long userId, LocalDate date, Integer
.fetch();
}

//TODO: 슬로우쿼리
@Override
public List<Schedule> showTodaySchedule(Long userId) {
LocalDate today = LocalDate.now();
Expand Down

0 comments on commit 0e4e0cb

Please sign in to comment.