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

Remove unnecessary getObjectMetadata() from getS3ObjectAndMetadata() #1060

Merged
merged 2 commits into from
Dec 2, 2017

Conversation

xinglin
Copy link
Contributor

@xinglin xinglin commented Nov 10, 2017

ObjectMetadata is available from S3Object.getObjectMetadata().
We don't need to send a separate GetObjectMetadata Request (an
HTTP HEAD request), in order to get the metadata. With this patch,
read performance will be doubled.

Signed-off-by: Xing Lin Xing.Lin@netapp.com

xinglin and others added 2 commits November 10, 2017 15:25
ObjectMetadata is available from S3Object.getObjectMetadata().
We don't need to send a separate GetObjectMetadata Request (an
HTTP HEAD request), in order to get the metadata. This will double
performance for read workloads.

Signed-off-by: Xing Lin <Xing.Lin@netapp.com>
Signed-off-by: Xing Lin <xing.lin@netapp.com>
@busbey busbey merged commit 381aaeb into brianfrankcooper:0.13.0-staging Dec 2, 2017
@busbey
Copy link
Collaborator

busbey commented Dec 2, 2017

Thanks for the contribution!

@xinglin
Copy link
Contributor Author

xinglin commented Dec 3, 2017

Thanks for merging the change! Glad to help.

@xinglin xinglin deleted the 0.13.0-staging branch December 3, 2017 01:45
busbey pushed a commit that referenced this pull request May 24, 2018
…ta() (#1060)

* Remove unnecessary getObjectMetadata() from getS3ObjectAndMetadata()

ObjectMetadata is available from S3Object.getObjectMetadata().
We don't need to send a separate GetObjectMetadata Request (an
HTTP HEAD request), in order to get the metadata. This will double
performance for read workloads.

Signed-off-by: Xing Lin <Xing.Lin@netapp.com>

* Remove one unused import to pass style check.

Signed-off-by: Xing Lin <xing.lin@netapp.com>
(cherry picked from commit 381aaeb)
@busbey busbey mentioned this pull request May 24, 2018
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.

2 participants