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

Perform fewer API calls for exists #4797

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

arielshaqed
Copy link
Contributor

Make the "does not exist" path faster: with this change it typically takes 1
listObjects() API call instead of 1 statObject and 2 listObjects. This is
surprisingly common.

However... The trivial "exists" path now requires 1 listObject instead of 1
statObject call. This is slightly more expensive, so this change will help
a lot more once we finish #4734. (I did test it as faster with #4792, but then
we deprioritized that work in ecosystem team.)

Make the "does not exist" path faster: with this change it typically takes 1
listObjects() API call instead of 1 statObject and 2 listObjects.  This is
surprisingly *common*.  The trivial "exists" path now requires 1 listObject
instead of 1 statObject call, which is more expensive.
@arielshaqed arielshaqed linked an issue Dec 12, 2022 that may be closed by this pull request
@arielshaqed arielshaqed added performance include-changelog PR description should be included in next release changelog area/client/hadoopfs team/ecosystem Team Ecosystem labels Dec 12, 2022
Copy link
Contributor

@Jonathan-Rosenberg Jonathan-Rosenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
The comments are really helpful!

@arielshaqed
Copy link
Contributor Author

Thanks! Pulling...

@arielshaqed arielshaqed merged commit 38d433c into master Dec 19, 2022
@arielshaqed arielshaqed deleted the bugfix/4676-lakefsfs-reduce-api-calls-for-exists branch December 19, 2022 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client/hadoopfs include-changelog PR description should be included in next release changelog performance team/ecosystem Team Ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lakeFSFS: Reduce API calls performed during exists()
2 participants