MP013CRITICALPro

high-traffic-table-ddl

What It Detects

DDL on a table with high query frequency (10K+ queries from pg_stat_statements).

Why It's Dangerous

Acquiring locks on heavily-queried tables affects more concurrent operations. Production context from pg_stat_statements reveals the real traffic impact.

Bad Example

-- DDL on a table with 50K queries/hour

Good Example

-- Schedule DDL during low-traffic windows

Configuration

Disable this rule:

# .migrationpilotrc.yml
rules:
  MP013: false

Or change its severity:

# .migrationpilotrc.yml
rules:
  MP013:
    severity: warning