Skip to content

Remove unnecessary getObjectMetadata() from getS3ObjectAndMetadata()#1060

Merged
busbey merged 2 commits into
brianfrankcooper:0.13.0-stagingfrom
xinglin:0.13.0-staging
Dec 2, 2017
Merged

Remove unnecessary getObjectMetadata() from getS3ObjectAndMetadata()#1060
busbey merged 2 commits into
brianfrankcooper:0.13.0-stagingfrom
xinglin:0.13.0-staging

Conversation

@xinglin

@xinglin xinglin commented Nov 10, 2017

Copy link
Copy Markdown
Contributor

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

busbey commented Dec 2, 2017

Copy link
Copy Markdown
Collaborator

Thanks for the contribution!

@xinglin

xinglin commented Dec 3, 2017

Copy link
Copy Markdown
Contributor Author

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