Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ Fixes APSL#68 -- improve performance of data migration
Tested against a 13GB SQL dump of the email table (~23K records), within a cgroup with 300M memory limit. The migration completed in just under 60s. * Use iterator to avoid loading entire table in memory (for the queryset cache) * Defer the message content, as it may contain attachments causing excessive memory usage - it is not used in the migration anyway. * Replace loop over log table with 3 separate SQL update queries
- Loading branch information