3 ms·
Ugh really? Why would they not hash the whole filename for shard assignment?
by nielsole 5y ago
Ugh really? Why would they not hash the whole filename for shard assignment?
- bowmessage 5y agoBecause the file name includes the "directory" prefix, i.e. each file's name stores the `/entire/bucket/dir/tree`, which can get large.
- manigandham 5y agoThe size of the input doesn't affect the hashing.
- bowmessage 5y agoIt affects the runtime of the hashing.
- mmoskal 5y agoIn these systems you typically can list blobs based on prefix. If you shard blobs sharing prefix to different nodes that becomes difficult.