Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OK to upload 5000+ images to /image dir w/o subdirectories?


dootch

Recommended Posts

I like to follow the KISS rule (keep it simple, stupid), so I plan to ftp all my images (over 5000) to the /images directory rather than creating subcatagories. Any drawbacks?

Link to comment
Share on other sites

I wouldn't do that if I were you. How do you plan to manage changing, adding, deleting without having to go through a directory of 5000 files?

 

Sounds like a nightmare in the making. If you are using ftp anyway, there is no reason not to use subdirs and sort images by common properties.

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

Make sure that you are using a robust file system. I'm sure that ReiserFS will handle that. I don't think that ext3 will. I'm fairly certain that ext2 and ufs will not.

 

Good luck,

Matt

Link to comment
Share on other sites

Make sure that you are using a robust file system.  I'm sure that ReiserFS will handle that.  I don't think that ext3 will.  I'm fairly certain that ext2 and ufs will not.

 

What makes you think that? ext2 easily can handle 5000 files. Even FAT32 can.

There is always more than one way to do it.

And always Keep It Simple, Stupid.

Link to comment
Share on other sites

Wow, its great to get so many responses for a newbie's question.

 

The reason I cannot apply common sense to sort the images is because I am already living the nightmare. The 5000 images exist in just one folder, thanks to my distributer. They did bother to include a product spreadsheet which I can sort by vendor to get a desired list of jpg filenames. So with a a reasonable couple dozen filenames selected in Excel, how I select just these images from my massive image folder to upload (to /images/XYZ) without taking Excederine?

 

 

Thanks for the help!

Link to comment
Share on other sites

What makes you think that? ext2 easily can handle 5000 files. Even FAT32 can.
I googled for a reference for a bit. Here is one I found. What I remember is ufs having problems at around 2000 files. It will store more than that, but directory lookups take a long time with that many files.

 

One of reasons why ReiserFS was created was to provide a more robust alternative in cases where one would reasonably want to have more files than that in one directory (mail servers, mp3s, etc.). Traditionally, people have used crude hashing techniques to split files into multiple sub-directories when that happened, e.g. /home/u/s/username.

 

This can be a problem in cases like web servers, where file processing needs to be done relatively quickly.

 

Good luck,

Matt

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...