Missing indexes detected on 7 foreign key columns: - on_call_overrides.user_id - on_call_layer_members.user_id - site_outages.site_id - escalation_targets.user_id - notification_digests.organization_id - on_call_notifications.user_id - alerts.site_outage_id (already existed, skipped) Without indexes, PostgreSQL must perform sequential scans for: - Referential integrity checks on DELETE/UPDATE of parent rows - JOIN operations on these columns - Can cause lock contention and slow queries Indexes created with CONCURRENTLY option to avoid blocking production tables during deployment. Migration uses @disable_ddl_transaction and @disable_migration_lock to ensure indexes are built without holding locks. Reviewed-on: graham/towerops-web#167 |
||
|---|---|---|
| .. | ||
| gettext | ||
| mibs | ||
| profiles | ||
| proto | ||
| repo | ||
| static | ||