GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(relay): stop delivery attempts from growing the database forever … · pingdotgg/t3code@c3b40b9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • infra/relay
    • migrations/postgres/20261027210820_delivery_attempts_retention
      • migration.sql
      • snapshot.json
    • src
      • agentActivity
        • ApnsDeliveries.test.ts
        • DeliveryAttempts.test.ts
        • DeliveryAttempts.ts
        • MobileRegistrations.test.ts
      • persistence
        • schema.ts
      • worker.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎infra/relay/migrations/postgres/20261027210820_delivery_attempts_retention/migration.sql‎

Copy file name to clipboard
+6Lines 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 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.