New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipart upload for large data. #2734
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2734 +/- ##
==========================================
+ Coverage 83.34% 83.92% +0.58%
==========================================
Files 233 233
Lines 26447 26452 +5
==========================================
+ Hits 22041 22200 +159
+ Misses 4406 4252 -154
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
stream = BytesIO(content) | ||
self.client.upload_fileobj(stream, self.bucket, path) | ||
else: | ||
self.client.put_object( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is put_object enough faster than upload_fileobj that it's worth having the else clause still? Or can we always use upload_fileobj ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put_object
is direct mapping to the PutObject api call and considered as a default way to upload object. I'm not sure about the performance differences, but I see upload_fileobj
as an edge case scenario and not as a default upload method.
🚀 🚀 Pull Request
Use upload_fileobj to upload large data into s3.
Impact
Description
Things to be aware of
Things to worry about
Additional Context