perf: add missing indexes to entitlement_webhook_deliveries table #41
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
epic
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-tenant#41
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
entitlement_webhook_deliveriestable (created inMigrations/2026_01_26_140000_create_entitlement_webhooks_tables.php) is missing indexes needed for common query patterns:(webhook_id, resend_at)— used when querying deliveries due for retrystatus— used when filtering deliveries by status (pending, failed, delivered)Impact
Acceptance Criteria
$table->index(['webhook_id', 'resend_at'], 'webhook_deliveries_retry_index')$table->index('status', 'webhook_deliveries_status_index')2026_01_29_000000_add_performance_indexes.phpmigration or create a new oneDiscovered during automated scan (issue #3)
Charon referenced this issue2026-02-20 23:57:34 +00:00