Django PostgreSQL Migration Guard

•
14k
•

Reviews and optimizes Django migration files to enforce PostgreSQL best practices, prevent table locks, and manage partitioned tables.

This skill provides specialized guidance for managing Django migrations within PostgreSQL environments, specifically tailored for high-scale applications like Prowler. It enforces strict structural rules, such as separating index creation from model definitions and implementing a mandatory two-step pattern for partitioned tables to prevent performance degradation. By automating the review of migration files, it helps developers avoid common pitfalls like production table locks and inefficient data backfills, ensuring database integrity and uptime during deployments.

主な機能

01Implements mandatory two-step migration patterns for partitioned tables
02Automates the splitting of bundled auto-generated migrations
03Enforces separation of model creation and index definitions
04Guides safe, asynchronous, and batched data backfills
05Detects and flags potential production table locks and I/O bottlenecks
0613,991 GitHub stars

ユースケース

01Refactoring auto-generated Django migrations for production safety
02Adding indexes to large partitioned tables without downtime
03Performing safe data migrations on multi-million row datasets