v0.21.2 - Fix export and import of large profiles
Backend:
- Fixed the profile export failing with "Insufficient memory" on accounts with many activities that have full streams. Laps, sets and streams are now read one activity at a time, so exporting them no longer needs more memory as the number of activities grows (#916, #917).
- Fixed the profile import of a large archive restoring later activities without their laps, sets and streams. Each data file in the archive is now read once (#916, #918).
- Fixed large profile archives being refused on upload. A profile archive can now be up to 8 GB uncompressed (was 2 GB) and hold up to 100,000 files (was 10,000), and has up to 120 seconds to be checked (was 30). The 500 MB limit on the ZIP file and the limits of other uploads are unchanged (#918).
- A profile import now fails, and imports nothing, when a laps, sets or streams file is over the size limit, instead of skipping that file. A file that cannot be read as JSON is still skipped (#918).
- Exports now split laps, sets and streams into files of about 16 MB. Archives exported by v0.21.0 and v0.21.1 can still be imported (#918).
Docs:
- Added the uncompressed size and file count limits to the export and import page (#918).