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

Bucket.get performs three HTTP calls #161

Open
pieter opened this issue Feb 27, 2013 · 0 comments
Open

Bucket.get performs three HTTP calls #161

pieter opened this issue Feb 27, 2013 · 0 comments

Comments

@pieter
Copy link

pieter commented Feb 27, 2013

When I get an object ("/a") from a bucket, the following three HTTP calls are performed in order:

GET /a
GET /?prefix=a
HEAD /a

This is very expensive both computationally and monetary: the second request is a LIST, costing 10x as much as the GET.

From what I can see the trace is as follows:

S3::Bucket.get calls S3::Key.get
S3::Key.get performs refresh(false), which performs the GET /?prefix request
a bit lower in the refresh() meta information is requested

right_aws (3.0.4)

vagrant@precise64:/vagrant/tagcache$ ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

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

No branches or pull requests

1 participant