Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Many files in the same folder

11 years 7 months ago #224160 by deltafidesign
Many files in the same folder was created by deltafidesign
I'm thinking about this condition. Large community and many users upload their avatar. I see that all avatars are uploaded into the same folder.

What will happens with 100.000 ... 500.000.... 1.000.000 users?

I suppose that only a single folder with 500.000 images could be a big problem. Maybe also 2000 files into a single folder can slow very down the site.

Am I right?

Any solution to split folder so that no more that 1000 images for every folder for example can be stored then another new folder is created and so on...

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224193 by krileon
Replied by krileon on topic Many files in the same folder
Well there's also the thumbnail image so for avatars it's always x2. This assumes say all 100,000 users upload an avatar that'd mean 200,000 images. No this shouldn't cause any sort of performance issue. It should only be a matter of storage if for whatever reason your server runs out of storage space for them all. No, there's no way to split them up. CB doesn't do lookups or parsing of this folder as it keeps track of their avatar using the avatar field stored to _comprofiler and always uses it in its paths. Basically there's nothing to be worried about.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum