Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10119

Split attachments directory into subdirectories

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.8
    • Fix Version/s: 3.3.0-a1
    • Component/s: None
    • Labels:
      None

      Description

      This has been brought up recently in support forums:

      http://www.phpbb.com/community/viewtopic.php?f=46&t=2124047
      http://www.phpbb.com/community/viewtopic.php?f=46&t=2125804
      http://www.phpbb.com/community/viewtopic.php?f=64&t=2126028

      FreeBSD UFS has a hard limit of ~32k files per directory. Most filesystems' performance degrades when they have a huge number of files per directory regardless.

      A two-level structure, using for example the first two characters of md5 of the file name for the subdirectory name, would likely be sufficient.

      Maybe using post id + file name would produce a more even distribution. Obviously if something like upload time or random noise can be incorporated it would be better still.

        Attachments

          Activity

            People

            • Assignee:
              CHItA CHItA
              Reporter:
              Oleg Oleg [X] (Inactive)
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: