feat: Use part_size with fixed big size for better ETag
This commit is contained in:
6
main.py
6
main.py
@@ -96,8 +96,10 @@ def put_object_data(s3: minio.Minio, bucket: str, object_name: str, data: bytes)
|
|||||||
s3.put_object(
|
s3.put_object(
|
||||||
bucket,
|
bucket,
|
||||||
object_name,
|
object_name,
|
||||||
io.BytesIO(data),
|
data=io.BytesIO(data),
|
||||||
len(data),
|
length=len(data),
|
||||||
|
num_parallel_uploads=1,
|
||||||
|
part_size=150 * 1024 * 1024,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user