Storing a large number of images

后端 未结 12 800
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 09:25

I\'m thinking about developing my own PHP based gallery for storing lots of pictures, maybe in the tens of thousands.

At the database I\'ll point to the url of the i

12条回答
  •  悲哀的现实
    2020-12-07 09:44

    I know is impractical to have all of them sitting at the same directory in the server as it would slow access to a crawl.

    This is an assumption.

    I have designed systems where we had millions of files stored flat in one directory, and it worked great. It's also the easiest system to program. Most server filesystems support this without a problem (although you'd have to check which one you were using).

    http://www.databasesandlife.com/flat-directories/

提交回复
热议问题