mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 05:44:59 +00:00
This migration is quite heavy because of join to all potential topics which should be `dismissed` for each user. To make it a little bit more efficient I did two things: - move conditions to join so it should use fewer rows - do that in batches - 1000 users at the time