Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How do you maintain a big image directory?  (Read 7483 times)

0 Members and 1 Guest are viewing this topic.

amirw2k

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
How do you maintain a big image directory?
« on: December 03, 2005, 09:44:02 am »

Hi all,
Up until now, I've uploaded files via FTP so I created sub-directories for images. Now I'm going to open the gallery for visitors and I'm afraid of what happens when a lot of images get to the same directory.

One image = 4 files (thumb,normal,full,backup).
5000 images = 20,000 files.

It will take some time to browse this directory using FTP and I'm afraid it will be very slow.

Did any of you run into a problem when you had so many files in the same directory?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do you maintain a big image directory?
« Reply #1 on: December 03, 2005, 09:49:30 am »

FTP-uploads go to custom folders you specify within the albums folder. User uploads will go into the userpics sub-folder and therefor not clutter the folders that are visible during batch-add. Having 20k pics is no problem at all for coppermine.
Stop posting on the "general discussion" board if you expect answers: it says "no support". Post on the support board that deals with your version of coppermine instead. Moving this thread to the support board.
Logged

amirw2k

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: How do you maintain a big image directory?
« Reply #2 on: December 03, 2005, 10:49:51 pm »

Hi GauGau,
Sorry for confusing the forums  :-\\

Actually my question didn't relate directly to coppermine,  but to handling a very big number of files in the same directory. I'm not concerned about FTP uploads or their seperate sub-directories because I can control that. Now that I'm allowing users to upload (using the web interface), then all the new pictures will go to the same directory which might cause a one-directory-overload and that bothered me. My main purpose is to stop batch uploading files via FTP and let the users do all the uploads.
Thanks for your response.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: How do you maintain a big image directory?
« Reply #3 on: December 04, 2005, 01:04:47 am »

User uploads go into the userpics folder under a separate folder for each user (numbered from 10000 on up).  So unless one user goes haywire, you should be fine.  That being said, I don't know when or even if a folder would go nuts at a certain number of files in it.
Logged

amirw2k

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: How do you maintain a big image directory?
« Reply #4 on: December 04, 2005, 11:17:34 pm »

Very strange. This is how it used to work when in my previous gallery ver 1.1d (saving to different sub-directories). As I recall, this wasn't working properly in "Safe Mode" and unfortunately my server set it on.

On the current version, coppermine saves the files to the userpics directory (no sub-directory). Maybe it's related to the fact that I'm using the a bridged gallery...
Logged

Nibbler

  • Guest
Re: How do you maintain a big image directory?
« Reply #5 on: December 04, 2005, 11:39:59 pm »

Coppermine will only create the subdirectories if silly_safe_mode is disabled. It's not related to bridging.
Logged

amirw2k

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: How do you maintain a big image directory?
« Reply #6 on: December 06, 2005, 04:47:16 am »

Thanks for the info Nibbler. I must say that this feature makes it very flexible. I know that Menalto's Gallery doesn't support this at all which makes coppermine the best gallery for everyone. By the way, I was looking for alternatives until I discovered the bridge thing which practically allows you to make coppermine work with almost any CMS  :)

Returning to the subject, what side-effects will appear if I change the sub-directory for user's pictures? I know that the path is saved within the database, so if I change it while being is Safe Mode, I can't see how it makes anything work wrong.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do you maintain a big image directory?
« Reply #7 on: December 06, 2005, 09:03:45 am »

what path are you refering to? The "albums" or "userpics" path in coppermine's config? If you decide to change them, you'll have to go through the database and change the relative paths for each field as well - not recommended (after all, it's just a name, so why bother?). Changing those paths to point to folders outside the coppermine root folder is not recommended at all unless you really, really know what you're doing.
Logged

amirw2k

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 37
Re: How do you maintain a big image directory?
« Reply #8 on: December 07, 2005, 01:48:39 am »

Hi GauGau,
I meant changing the userpics name in coppermine's config while keeping the old files inside so the database will still have reference to them.

1. Create a new sub-directory under albums called userpics2.
2. Change userpics to userpics2 in the config.

The old pictures will stay under userpics sub-directory so everything will work properly. After all, the path is saved in the database and as I see it the config affects only new files uploaded, right?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do you maintain a big image directory?
« Reply #9 on: December 08, 2005, 08:37:37 am »

haven't tested, but this should work - yes. However, some functionality will break, like the admin tools. Not a recommended solution imo.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.