naototty / s3backer

Automatically exported from code.google.com/p/s3backer
GNU General Public License v2.0
0 stars 0 forks source link

Multiple Object Delete Support #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When deleting multiple blocks the network usage is suboptimal since each block 
is deleted with a single delete request. It would be more effient to make a 
single delete request with multiple objects (reference 
http://docs.aws.amazon.com/AmazonS3/latest/API/multiobjectdeleteapi.html).

The --erase flag is the most impacted scenario, but normal usage (where 
filesystem is mounted with discard) could also get a boost (eg rm -rf 
/this/folder, or when deleting big files).

Another quirk seems to be the "max-keys" parameter of the GET /?marker.... http 
request (that is actually fixed at 256). It would be better to make it an 
option in the command line, and set its default to the system maximum (1000). 
This gives network efficiency during the initial block listing.

Original issue reported on code.google.com by natalega...@gmail.com on 14 Jun 2015 at 9:47