Skip to content

Commit c3b40b9

Browse files
fix(relay): stop delivery attempts from growing the database forever (#26141)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 93a9e07 commit c3b40b9

8 files changed

Lines changed: 1710 additions & 9 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- Alchemy runs migrations in a transaction, so CONCURRENTLY is unavailable here. Build
2+
-- idx_relay_delivery_attempts_created concurrently before deploying so this is a no-op.
3+
DROP INDEX IF EXISTS "idx_relay_delivery_attempts_environment";--> statement-breakpoint
4+
DROP INDEX IF EXISTS "idx_relay_agent_activity_rows_updated";--> statement-breakpoint
5+
DROP INDEX IF EXISTS "idx_relay_environment_credentials_environment";--> statement-breakpoint
6+
CREATE INDEX IF NOT EXISTS "idx_relay_delivery_attempts_created" ON "relay_delivery_attempts" ("created_at");

0 commit comments

Comments
 (0)