Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .server-changes/project-alert-channel-id-index.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
---
area: webapp
type: improvement
---

Deleting an alert channel is now fast and no longer slows down as a project builds up alert history.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX CONCURRENTLY IF NOT EXISTS "ProjectAlert_channelId_idx" ON "public"."ProjectAlert"("channelId");
Comment thread
ericallam marked this conversation as resolved.
2 changes: 2 additions & 0 deletions internal-packages/database/prisma/schema.prisma
Original file line numberDiff line numberDiff line change
Expand Up@@ -2412,6 +2412,8 @@ model ProjectAlert {

createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

@@index([channelId])
}

enum ProjectAlertType {
Expand Down
Loading