Comments (3)
Seems like we cannot use s3manager.BatchDelete for this release.
There are two different approaches to use s3manager.BatchDelete API.
- Create paginator and use this paginator on delete operations.
input := &s3.ListObjectsInput{
Bucket: aws.String("bucket"),
Prefix: aws.String("prefix")
}
iter := s3manager.NewDeleteListIterator(svc, input)
This is fast but will not work since it removes the list result directly. We also need to remove keys that match with wildcard strings (not whole listing result). As an alternative, maybe we can write custom paginator (since it is an interface) and use this paginator on batch delete operations. But this does not reduce the complexity (I prefer our current architecture).
- Give the list of objects to DeleteObjectsIterator and use this iterator on delete operations.
batcher.Delete(ctx, &s3manager.DeleteObjectsIterator{Objects: objects})
This is super easy and clean but slow. It won't perform well since it is required to list and collect all objects first and pass collected objects to DeleteObjectsIterator
. Currently, we don't block during S3 pagination (listing). We are directly sending these keys into the URL channel and it works asynchronously.
That is why I am proposing to close this issue and remove from this milestone :)
@igungor What do you think? You can close the issue if you agree.
from s5cmd.
Thank you Onur.
Not a blocker. Let's keep the issue open for a while.
from s5cmd.
s3manager.BatchDelete does not provide any improvement over our solution.
from s5cmd.
Related Issues (20)
- Download speed reduces with large files (> ~100GB) HOT 1
- endpoint_url support in configuration file
- Source error with sync delete all dest files HOT 2
- Common mutipart signature auth error can cause multipart uploads to fail HOT 1
- Dry-run indication (feature request)
- Question: Specify different endpoint for source and destination
- s5cmd ls --region argument, and implied lists respect the cp argument
- Facilitating Python Usage: Proposal for s5cmd Wheels HOT 2
- README.md incorrect example "you can compress the data before uploading" HOT 1
- Path globbing syntax is not documented HOT 2
- README.md internal link is incorrect
- rm doesn't delete 0-byte folder placeholders
- Region setting ignored in credentials file (and awscli doesn't need the setting at all)
- Copying object onto itself with metadata fails
- sync command copies a new object everytime when the s3 version is on GLACIER
- run input syntax is not documented HOT 1
- "Beast mode" example is incorrect
- remote-to-remote copy with --if-source-newer uses wrong region
- Support cat with glob
- Please create a new release with updated `github.com/lanrat/extsort` version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s5cmd.