chore(db): drop redundant idx_webhook_on_workflow_id_block_id index (#4809)

Removed because (workflow_id, block_id) is a left-prefix of idx_webhook_on_workflow_id_block_id_updated_at_desc, which fully covers it. The dropped index was non-unique and enforced no constraint.
This commit is contained in:
Waleed
2026-05-29 20:31:37 -07:00
committed by GitHub
parent 15ca66f112
commit 75d98739eb
4 changed files with 17569 additions and 5 deletions
@@ -0,0 +1 @@
DROP INDEX "idx_webhook_on_workflow_id_block_id";
File diff suppressed because it is too large Load Diff
@@ -1541,6 +1541,13 @@
"when": 1780081787541,
"tag": "0220_early_hellion",
"breakpoints": true
},
{
"idx": 221,
"version": "7",
"when": 1780111474238,
"tag": "0221_secret_hannibal_king",
"breakpoints": true
}
]
}
-5
View File
@@ -747,11 +747,6 @@ export const webhook = pgTable(
pathIdx: uniqueIndex('path_deployment_unique')
.on(table.path, table.deploymentVersionId)
.where(sql`${table.archivedAt} IS NULL`),
// Optimize queries for webhooks by workflow and block
workflowBlockIdx: index('idx_webhook_on_workflow_id_block_id').on(
table.workflowId,
table.blockId
),
workflowDeploymentIdx: index('webhook_workflow_deployment_idx').on(
table.workflowId,
table.deploymentVersionId