Re: number of files in a dir vs. performace
| From: | Jason Wong | Date: | Tue, 23 Jul 2002 03:22:21 +0000 |
| Subject: | Re: number of files in a dir vs. performace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109012@lists.php.net to get a copy of this message | ||
On Tuesday 23 July 2002 11:09, eat pasta type fasta wrote:
> I'm using mysql to hold references to image files then served on my pages
> via PHP.
>
> I have typically a set of two files:
>
> thumb and a large original, on occasion there is also a variant inreasing
> the set to 3 per image
>
> currently I am holding all of the files in 1 directory since the DB can
> keep track of them, however their number has grown to over 400 at this
> point
>
> my issue is whether it would be worth it (performance wise) to split them
> into thumbs and works thus having 200+ files per directory as opposed to
> so many, I am expecting the number of images to double in the future.
Nothing to do with PHP and everything to do with the OS. FWIW 20K files in one
directory on Linux is slow.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Yow! Are we wet yet?
*/