Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Optimize performance of UnescapeEventName migration on large sit…
…es (#284) On large sites, the migration can take up to 4 hours which is not something we want. This commit adds the following optimisations: 1. Add an index for notifications `WHERE notifcation_type IN (27, 28)` 1. Increase each batch size to 10000, the smaller the batch size the more times we have to scan the notifications table. 1. Avoid having to start the scan of the notifications table from id 1 and instead start from the first event notification type. Follow-up to 2719b9e
- Loading branch information