[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] help!



Quoting Tim <tnp3@xxxxxxxxx>:
> I have a RAQ 3 and it is very slow, mainly in the
> downloading of images (10,000+). FTP uploading, Telnet
> and email are ok. CGI processes is a bit slow also.

When you have more than 10,000 images in a single directory, it can add a lot 
of time to the rewriting and reading if any changes are made to files in that 
directory, as the directory inode has to be frequently rewritten and parsed.  
(I'm assuming this is the case, but it might not be.)  If it is, then you can 
use a method like Squid does, whereby you hash the image name and store it in a 
subdirectory, that reduces the file count per directory inode.

Alternatively, and this is becoming increasingly popular, serve the images 
directly from a database.  PostGreSQL or MySQL are fine for this purpose.

cheers,
*********************************
        Paul Gillingwater
        Managing Director
 CSO Lanifex Unternehmensberatung 
 & Softwareentwicklung G.m.b.H.
      NEW BUSINESS CONCEPTS

E-mail:  paul@xxxxxxxxxxx
Mobile:  +43/699/1922 3085
Webhome: http://www.lanifex.com
Address: Praterstrasse 60/1/2 
         A-1020 Vienna, Austria
*********************************