Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get a shallow list of objects in listContents #47

Merged
merged 1 commit into from
Nov 6, 2015

Conversation

zaak
Copy link

@zaak zaak commented Oct 17, 2015

This is a performance improvement like in thephpleague/flysystem-aws-s3-v2#13.
With AWS-SDK v3 it's not possible to pass return_prefixes iterator option, so I had to process the command manually. Actually it may be even more efficient as there's no unnecessary array to iterator, and then back iterator to array conversion.

@basz
Copy link

basz commented Oct 21, 2015

I've confirmed this patch to be much much much faster then before. Thnx!

@frankdejonge
Copy link
Member

@zaak I'm doing some research of my own as well, I know that this implementation might have the 1000 object limit, which is something the iterator works around. Might be that we'll need to file an issue for this and require at least the next version or implement it ourselves.

@zaak
Copy link
Author

zaak commented Oct 21, 2015

@frankdejonge Good to know. I'll have a look at this too.

@zaak
Copy link
Author

zaak commented Oct 21, 2015

@frankdejonge I've updated the PR (just to let you know what I found). Looks like paginators may be the way to go. Seems to work fine with > 1000 objects, but I didn't do too much testing yet.

@basz
Copy link

basz commented Oct 30, 2015

this works fine (a tests fails though) - is this to be released anytime soon?

@zaak
Copy link
Author

zaak commented Oct 30, 2015

@basz Which tests fails?

Edit: Never mind, I got it.

@zaak
Copy link
Author

zaak commented Oct 30, 2015

Updated the PR. It's kinda tricky to test it properly due to internal closure, but I think it's worth to keep the logic this way and allow requests to be sent asynchronously.

frankdejonge added a commit that referenced this pull request Nov 6, 2015
Get a shallow list of objects in listContents
@frankdejonge frankdejonge merged commit ac980f7 into thephpleague:master Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants