Files
cloud-ip-validator/internal/db/migrations/0013_drop_redundant_checks_index.sql
T

4 lines
281 B
SQL
Raw Normal View History

-- (registry_id, cycle_id) are the first columns of the UNIQUE index on
-- checks, which serves every lookup by them; the extra index only costs
-- writes (see docs/changes/2026-11-03_00-19_control-api-disk-write-reduction-plan.md).
DROP INDEX IF EXISTS idx_checks_registry_cycle;