Skip to content

Commit 10e7985

Browse files
authored
Add index for waitpoint tokens dashboard query (#2498)
1 parent 2eddda1 commit 10e7985

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "Waitpoint_environmentId_type_id_idx" ON "public"."Waitpoint"("environmentId", "type", "id" DESC);

internal-packages/database/prisma/schema.prisma

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,8 @@ model Waitpoint {
10621062
@@index([environmentId, type, createdAt(sort: Desc)])
10631063
/// Status filtering
10641064
@@index([environmentId, type, status])
1065+
/// For the waitpoint token dashboard page
1066+
@@index([environmentId, type, id(sort: Desc)])
10651067
}
10661068

10671069
enum WaitpointType {

0 commit comments

Comments
 (0)