perf: add composite index on EventType(parentId, teamId) (#27099)
* perf: add composite index on EventType(parentId, teamId) Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * Apply suggestion from @keithwillcode --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
2a98693dcd
commit
ee076d7102
+2
@@ -0,0 +1,2 @@
|
||||
-- CreateIndex
|
||||
CREATE INDEX "EventType_parentId_teamId_idx" ON "public"."EventType"("parentId", "teamId");
|
||||
@@ -274,6 +274,7 @@ model EventType {
|
||||
@@index([scheduleId])
|
||||
@@index([secondaryEmailId])
|
||||
@@index([parentId])
|
||||
@@index([parentId, teamId])
|
||||
@@index([restrictionScheduleId])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user