in reply to Need directory scheme to store 400,000 images

Hi Mark.

Check out Re: Efficient processing of large directory, a previous node I wrote dealing with a very similar question. The solution is very implementation specific, and is based on what your filesystem's characteristics are.

--MidLifeXis

P.S. Is this an upgrade to your C::A image storage app?

  • Comment on Re: Need directory scheme to store 400,000 images

Replies are listed 'Best First'.
Re: Re: Need directory scheme to store 400,000 images
by markjugg (Curate) on Apr 12, 2004 at 17:46 UTC
    Yes, it's likely this code will wind up in a version of CPAN:CGI::Uploader. The most current version has a function called 'build_loc' to handle the path name generation. So it may be possible to support more than one storage scheme easily, or at least sub-class the module and provide your own if you don't like mine.