Re: OK to have many files in one folder?
| From: | Daniel Brown | Date: | Fri, 15 Jun 2007 19:47:57 +0000 |
| Subject: | Re: OK to have many files in one folder? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257105@lists.php.net to get a copy of this message | ||
On 6/15/07, Crayon Shin Chan <crayon.shin.chan.uk@gmail.com> wrote:
On Saturday 16 June 2007 02:51, Daniel Brown wrote: And remember, the fact that they're all in one directory doesn't matter at all to the system, as directories, folders, et cetera, are just representations for human readability and organization. In fact, those files reside on several sectors throughout the drive, and each file itself is probably fragmented many times. Actually it does matter depending on the filesystem you use. If you're using ext2/ext3 then having several thousand files in a directory seriously slows things down. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpOnce again, this doesn't matter so much for per-directory (though listing will take longer, as I think I mentioned) as it does the filesystem mount. The ext2/ext3 filesystems were made for these reasons, especially with journaling like ReiserFS, XFS, et cetera (which is a completely different bag of nuts). -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107