-
Notifications
You must be signed in to change notification settings - Fork 16
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
s3.src('mybucket', {read:false}); could be faster #23
Comments
|
From this example looks like you should be able to get Not sure if it returns |
Unfortunately Here is the typical response I see (and yes, content type is set): {
Key: 'lib/js/ui-bootstrap.js',
LastModified: Wed Sep 02 2015 18:34:58 GMT-0400 (EDT),
ETag: '"2e06f6e991ca39d9e13cce26c8d55fd6"',
Size: 14452,
StorageClass: 'STANDARD'
} |
If you don't need certain properties then this could boost performance. It can be enabled by passing `{ read: false, meta: false }` as options. Existing behavior remains untouched. Closes #23
You can try this: #25 I have to test it a little more thoroughly yet, but feel free to play with it. |
LGTM. My only thought would be some way to still populate the metadata that's quickly available via |
Hm yes. I may revisit that, since there's not many reasons for not having that data there (other than it being non-standard). |
Only potential problem I see is namespace collision with some unknown other plugin. I think that's really unlikely though |
I tried to using vinyl-s3 to fetch metadata on existing object in my bucket.
I see the
{read: false}
option discussed, but things still move pretty slow.I ended up using the
aws-sdk
directly and doingThis returned the same metadata more than 100x faster. Any reason for this?
The text was updated successfully, but these errors were encountered: