Bug #96300 | Iterating over a Django QuerySet using a for loop, it "hangs" on last element | ||
---|---|---|---|
Submitted: | 23 Jul 2019 22:34 | Modified: | 30 May 2021 21:10 |
Reporter: | Christian Matenaers | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | Connector / Python | Severity: | S3 (Non-critical) |
Version: | mysql_connector_python-8.0.16-cp37-cp37m | OS: | MacOS (10.14.5 (18F132)) |
Assigned to: | CPU Architecture: | x86 | |
Tags: | hangs, iterator |
If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.
To split a large file:
- On *nix platforms use the split command e.g.
split -b 50MB <my_large_archive> <my_split_archive_prefix>
- On windows use WinZip or a similar utility to split the large file