Arrange images in directories or in one heap?

    Faced a dilemma, user-generated content - site users add ads with photos.

    One programmer says that you need to lay out pictures in directories so that their web server gives them faster, another says that you don’t need to steam, * nix-systems work quite calmly with a huge number of files in one directory.

    In essence, if we put everything in one place, then there will be more than 80 thousand images in 2 years.
    Now it is already 30 thousand, the weight of the directory is 1.7 GB.

    Which programmer is right?

    Also popular now: