Add index for waitpoint tokens dashboard query (#2498)
This commit is contained in:
+2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user