You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking at logs I realized that s3transfer spawns a thread-pool each time it needs to store a file. The rationale is that it allows to send multiple files in parallel. In the case of Django however, the Storage API does not seem to allow bulk uploads so spawning thread-pools is wasteful.
While looking at logs I realized that
s3transfer
spawns a thread-pool each time it needs to store a file. The rationale is that it allows to send multiple files in parallel. In the case of Django however, the Storage API does not seem to allow bulk uploads so spawning thread-pools is wasteful.boto3 has a config option to prevent this problem: https://github.com/boto/boto3/blob/0cc6042615fd44c6822bd5be5a4019d0901e5dd2/boto3/s3/transfer.py#L158
Code snippet:
Settings:
Dependencies:
The text was updated successfully, but these errors were encountered: