mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 14:02:13 +08:00

posts and topics tables can be huge, this migration change ensures the migration performs less work in one giant transaction reducing risk of deadlocks Migration is re-runnable thanks to NOT EXISTS checks