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
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[])