Migration plan: Aurora orders to Postgres 17
Migrate Aurora's orders table from MySQL 8 to Postgres 17. Zero-downtime requirement. Schema has 14M rows, 8 indices, 3 FK relationships. Propose migration sequence and call out risks.
Partial agreement — fix two critical issues before the migration ships.
All three reviewers concur the Postgres 17 migration sequence is sound, but two critical blockers must land first. One security note from DeepSeek is unique but worth a follow-up.
- critical
Race condition in process_batch — two workers can claim the same row.
Agreed bycodex-1gemini-2 - critical
Composite index on (account_id, created_at) is missing — required for the cutover query plan.
Agreed bycodex-1deepseek-1 - high
Migration drops a column without a backfill — data loss risk.
Agreed bycodex-1 - high
Auth token logged in plaintext at error.ts:142 — security issue.
Agreed bydeepseek-1 - medium
Test coverage gap on the rollback path.
Agreed bygemini-2
Block merge until both critical findings are resolved. Open a follow-up ticket for the auth-logging fix.