How do I bulk upload to s3?

后端 未结 2 1473
甜味超标
甜味超标 2021-01-05 18:17

I recently refactored some of my code to stuff rows into a db using \'load data\' and it works great -- however for each record I have I must upload 2 files to s3 -- this to

2条回答
  •  执念已碎
    2021-01-05 18:58

    You can use the [putObjects][1] function of JetS3t to upload multiple files at once.

    Alternatively you could use a background thread to upload to S3 from a queue, and add files to the queue from your code that loads the data into the database.

    [1]: http://jets3t.s3.amazonaws.com/api/org/jets3t/service/multithread/S3ServiceMulti.html#putObjects(org.jets3t.service.model.S3Bucket, org.jets3t.service.model.S3Object[])

提交回复
热议问题