4 ms·
This seems a rather odd implementation detail to burden the user with. Why don't you just use a hash of the filename for the partition key, so all files are di
by moe 13y ago
This seems a rather odd implementation detail to burden the user with.
Why don't you just use a hash of the filename for the partition key, so all files are distributed randomly regardless of their name?
Is there an advantage for amazon or for the user in having S3 files cluster up by filename by default?
- penguindev 13y agomost likely so dir listings are a lot faster. (they are sorted by key, and can use delimiters for subdir emulation..)
- dllthomas 13y ago... but for that they just need to store the filenames sorted somewhere. Content could be located based on a hash of the filename, still.
- sitkack 13y agoIf this is true, it is umm, naively suboptimal (I have harsher words in my head).