Skip to content

Commit

Permalink
increase the partsize for s3 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored and Amogh-Bharadwaj committed May 16, 2024
1 parent bd8308d commit ff8d25b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flow/connectors/utils/avro/avro_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ func (p *peerDBOCFWriter) WriteRecordsToS3(
numRows, writeOcfError = p.WriteOCF(ctx, w)
}()

_, err = manager.NewUploader(s3svc).Upload(ctx, &s3.PutObjectInput{
uploader := manager.NewUploader(s3svc, func(u *manager.Uploader) {
u.PartSize = 4 * 1024 * 1024 * 1024
})

_, err = uploader.Upload(ctx, &s3.PutObjectInput{
Bucket: aws.String(bucketName),
Key: aws.String(key),
Body: r,
Expand Down

0 comments on commit ff8d25b

Please sign in to comment.