Files
warmbly/internal/infrastructure/db/migrations/000200_contacts_verification_requested_index.up.sql
T

6 lines
316 B
SQL

-- Member-requested checks are picked before the backlog, through this index.
-- Built concurrently, on its own, because contacts is a live table.
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_contacts_verification_requested
ON contacts (verification_requested_at)
WHERE verification_requested_at IS NOT NULL;