Opened 11 years ago
Closed 8 years ago
#5249 closed enhancement (wontfix)
1 folder avatar per 1 user, it not good
Reported by: | beenyoung | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
I’m using BuddyPress, I dont use Gravartar to default and enable for user can upload avatar.
However, after user uploaded an image, one folder be created for that image with name is user ID.
Example: wp-content/uploads/avatars/1150/c6aeaf32e901429df2c715b29041b2fb-bpfull.jpg
So, if my site have much members, my hosting will be much folders(100 000 users => 100 000 folders). That is very bad for my site (I think so).
I think the best way is wp-content/uploads/avatars/1150-20105018112013-bpfull.jpg (1150 is user ID, 18112013 is time)
This ticket is content of the post: http://buddypress.org/support/topic/1-folder-avatar-per-1-user-it-not-good-how-to-fix-it/
Change History (3)
#3
@
8 years ago
- Keywords reporter-feedback removed
- Milestone Future Release deleted
- Resolution set to wontfix
- Status changed from new to closed
- Version 1.8.1 deleted
For server it's better to have 100k folders with 2 files in each, than 200k files in /avatars
directory.
IO operations in this case will be much more speedy. Selecting a file in a directory with 200000 is longer than directly opening one of the 100k directories.
So closing this ticket as wontfix
.
What's the advantage of having one directory with 200,000 files (two avatars per user) vs 100,000 directories with two files each?