Skip to content

Commit 211d116

Browse files
committed
Remove project ID indexes
1 parent 59e6783 commit 211d116

File tree

8 files changed

+25
-8
lines changed

8 files changed

+25
-8
lines changed

.claude/settings.local.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(grep:*)",
5+
"Bash(rg:*)",
6+
"Bash(find:*)",
7+
"Bash(/Users/eric/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg \"\\.findFirst|\\.findMany|\\.findUnique|\\.create|\\.update|\\.delete|\\.upsert|\\.count|\\.aggregate\" --type ts -A 3 -B 1)",
8+
"Bash(/Users/eric/.claude/local/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg \"taskRun\\.\" --type ts -B 2 -A 2)",
9+
"WebFetch(domain:clickhouse.com)"
10+
],
11+
"deny": []
12+
}
13+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_projectId_idx";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_projectId_taskIdentifier_idx";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_projectId_status_idx";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_projectId_taskIdentifier_status_idx";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_projectId_createdAt_taskIdentifier_idx";
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- DropIndex
2+
DROP INDEX CONCURRENTLY IF EXISTS "TaskRun_projectId_id_idx";

internal-packages/database/prisma/schema.prisma

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -672,14 +672,6 @@ model TaskRun {
672672
@@index([parentTaskRunId])
673673
// Finding ancestor runs
674674
@@index([rootTaskRunId])
675-
// Task activity graph
676-
@@index([projectId, createdAt, taskIdentifier])
677-
//Runs list
678-
@@index([projectId])
679-
@@index([projectId, id(sort: Desc)])
680-
@@index([projectId, taskIdentifier])
681-
@@index([projectId, status])
682-
@@index([projectId, taskIdentifier, status])
683675
//Schedules
684676
@@index([scheduleId])
685677
// Run page inspector

0 commit comments

Comments
 (0)