Add index for waitpoint tokens dashboard query (#2498)

This commit is contained in:
Eric Allam
2025-09-12 16:48:42 +01:00
committed by GitHub
parent 2eddda1233
commit 10e7985fbc
2 changed files with 4 additions and 0 deletions
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX CONCURRENTLY IF NOT EXISTS "Waitpoint_environmentId_type_id_idx" ON "public"."Waitpoint"("environmentId", "type", "id" DESC);
@@ -1062,6 +1062,8 @@ model Waitpoint {
@@index([environmentId, type, createdAt(sort: Desc)])
/// Status filtering
@@index([environmentId, type, status])
/// For the waitpoint token dashboard page
@@index([environmentId, type, id(sort: Desc)])
}
enum WaitpointType {