开发者

Why imageboard scripts do not use database?

开发者 https://www.devze.com 2022-12-17 17:26 出处:网络
I was very surprised when downloaded two imageboard php scripts. There is no connection to database, threads and posts are listed as files and folders. Is this way faster than standard mysql database

I was very surprised when downloaded two imageboard php scripts. There is no connection to database, threads and posts are listed as files and folders. Is this way faster than standard mysql database con开发者_如何学JAVAnection or there is another reason?


Two factors lead to this. 1) The number one purpose of imageboards is to hold images, and images don't do well when stored in a database. 2) Threads in an imageboard are strictly linear, therefore a simple monotonic filename scheme suffices to distinguish them.

0

精彩评论

暂无评论...
验证码 换一张
取 消