fix: badly performing code

This commit is contained in:
2025-08-23 19:44:01 +02:00
parent 6a7b449363
commit 6e10da6f98
4 changed files with 34 additions and 13 deletions

View File

@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "StreamInfo_username_idx" ON "StreamInfo"("username");

View File

@@ -81,7 +81,7 @@ model StreamInfo {
enableNotifications Boolean @default(true)
// TODO: index on username
@@index([username])
}
model Follow {