We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e7985 commit 3188dc9Copy full SHA for 3188dc9
internal-packages/database/prisma/migrations/20250912155941_add_batch_task_run_dashboard_index/migration.sql
@@ -0,0 +1,2 @@
1
+-- CreateIndex
2
+CREATE INDEX CONCURRENTLY IF NOT EXISTS "BatchTaskRun_runtimeEnvironmentId_id_idx" ON "public"."BatchTaskRun"("runtimeEnvironmentId", "id" DESC);
internal-packages/database/prisma/schema.prisma
@@ -1578,6 +1578,8 @@ model BatchTaskRun {
1578
///this is used for all engine versions
1579
@@unique([runtimeEnvironmentId, idempotencyKey])
1580
@@index([dependentTaskAttemptId])
1581
+ // This is for the batch list dashboard page
1582
+ @@index([runtimeEnvironmentId, id(sort: Desc)])
1583
}
1584
1585
enum BatchTaskRunStatus {
0 commit comments