-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ [Feat]: reservation 생성 조건 변경 (#124)
- reservation 생성 조건을 진행중(request-accept-mentee_checked-mentee_feedback)상태로 확장했습니다. - transaction 내에서 처리되기때문에 count와 같은 집계함수의 속도를 높이는 것이 최우선이라고 생각했습니다. - mentorId, menteeId, status에 index를 생성해 빠르게 집계할 수 있도록 변경했습니다.
- Loading branch information
1 parent
5ae2685
commit 9cf218e
Showing
3 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- CreateIndex | ||
CREATE INDEX `reservations_mentor_id_mentee_id_status_idx` ON `reservations`(`mentor_id`, `mentee_id`, `status`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters