chore(db): drop redundant idx_webhook_on_workflow_id_block_id index#4809
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview Lookups on Reviewed by Cursor Bugbot for commit 4bf0c6c. Configure here. |
Greptile SummaryThis PR removes the redundant
Confidence Score: 5/5Safe to merge — drops a non-unique, non-constraint index whose columns are fully covered by an existing wider index, with no functional impact on queries. The migration is a single DROP INDEX on an index that is a strict left-prefix of an already-present three-column index. The schema, snapshot, and journal are all mutually consistent. No constraints, uniqueness guarantees, or query paths are affected. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "chore(db): drop redundant idx_webhook_on..." | Re-trigger Greptile |
Summary
idx_webhook_on_workflow_id_block_idindex onwebhook(workflow_id, block_id)are a left-prefix ofidx_webhook_on_workflow_id_block_id_updated_at_desc(workflow_id, block_id, updated_at DESC), which fully serves the same querieswebhookinserts/updatesType of Change
Testing
Migration generated via drizzle-kit; produces a single
DROP INDEXstatement. Recommend testing on a non-production branch first per PlanetScale guidance.Checklist