Re:Behind Amazon’s HQ2 fiasco
by scarface74 on Tuesday February 04, 2020 @05:57PM
(#22242037)
It comes from a fundamental lack of understanding of what S3 is and how it is organized. Objects are indexed as a key value store optimized for sorting on a key and a key prefix. The fact that keys can have backslashes as a character doesn’t mean that objects are stored in “folders”. Knowing how S3 indexes data - by key only and all other metadata is tagged on the object and not in the index, should inform how to name your keys and your access patterns.
For instance sorting by date, would involve AWS querying each objects meta data and then sorting it.
If having to find objects by date is an important use case, why not create keys in the format of YYYYMMDD?
Or just use the CLI.
I haven't checked this feature in years -- maybe they fixed it