Max files per directory in S3

后端 未结 3 1354
深忆病人
深忆病人 2020-12-04 11:09

If I had a million images, would it be better to store them in some folder/sub-folder hierarchy or just dump them all straight into a bucket (without any folders)?

W

3条回答
  •  温柔的废话
    2020-12-04 11:43

    I use a directory structure with a root then at least one sub directory. I often use "document import date" as the directory under the root. This can make managing backups a little easier. Whatever file system you are using you're bound to hit a file count limit (a practical if not a physycal limit) eventually. You might think about supporting multiple roots as well.

提交回复
热议问题