200,000 images in single folder in linux, performance issue or not?

后端 未结 6 1717
傲寒
傲寒 2020-12-28 19:27

I have a php/mysql website with over 200,000 images in single folder (linux server). I don\'t think, that I will never need to see them in

6条回答
  •  时光说笑
    2020-12-28 19:54

    It's quite probable that some time in the future you might want to do something where having all the images dumped in a single folder will hurt you, or something unexpected will happen and you will regret doing it that way.

    On the other hand, having the files split into several folders doesn't seem to have many disadvantages, besides added complexity in dealing with them.

    Performance will vary depending on your filesystem, its configuration and your access patterns. I believe it would be quite strange for performance to be perceptibly worse if splitting the files between multiple folders.

    So I'd say, split into different folders...

提交回复
热议问题