40000 users, each users have his own album
funfun167
Joined: 2010-03-14
Posts: 22 |
Posted: Sat, 2010-06-05 19:13 |
I have to set up a site approximately 40000 users, each have his own album. He can only edit his own album, while he cannot edit other album To do so, there is one solution without modification: To work around, I think of a solution as follows May I know whether it is feasible for both Gallery2 and Gallery3? Thank you very much |
|
Posts: 8339
So you totally disregarded my mention of the user album module for G2 in the other thread?
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 22
As I see this
http://gallery.menalto.com/node/64070
It seems the useralbum modules lead to problem when the number of user reach 40000, and I intend to use Gallery3
Posts: 8339
Not on the right hardware. But 40000 will require very hearty hardware whichever system you choose.
unsubscribing
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 22
For Gallery2, one user per group, 40000 number of permission may lead to problem
http://codex.gallery2.org/Gallery2:ACL_Performance
do this problem exist in Gallery 3?
Thank you
Posts: 16504
For your situation it would be the same. However, managing those permissions in G3 would be well, extremely painful.
Do you really have 40,000 users or are you just hoping to grow your site that large?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22
Thank you
Then how to deal with such number of users and albums, such that the user can only edit his own album...
Posts: 16504
Do you really have 40,000 users or are you just hoping to grow your site that large?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22
My project will reach that load, or may be more
I am considering different gallery/CMS portal, and find the most relevant one to invest.
Menalto Gallery is probably the one we will use to customize, the only issue is whether it can handle such number of members/albums
Posts: 22
It seems that to handle such number of members
By default solution, I would need to create 40000 groups, which is a problem
May I do it in the following ways:
1: There is only one permission rule for all registered users, they are allowed to "add" and "edit" ALL albums
2: Whenever a user performs this(eg. add/deleted photo on a album)
the script do a check first, such that:
i): if the owner of that album is him, then he can "add" and "edit" that album
ii): if the owner of that album is not him, then he can not "add" and "edit" that album
3: Hide all the "add"/"edit" related UI in all album that not belongs to him
Posts: 16504
Why groups? For G2 and your purpose I probably wouldn't go that route. Groups are for grouping people together. If they each have their own album, there is no need for groups. Just use the User Albums plugin for G2.
Oh, you're still talking about G3. It's not really designed for what you want to do. You can do it, but the best thing would be to create a custom module to deal with your situation better. Have fun.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22
As I read from this:
http://codex.gallery2.org/Gallery2:Modules:useralbum
But beware from using this module for a large user-base. There is still an unfixed performance problem with user-albums if there are a lot of users with their own user-album.
Posts: 16504
My suggestion is if you are actually small to start with, just use that. As you grow, your revenue should grow and you'll be able to afford someone to either code a different, more appropriate solution, or fix that unfixed performance issue or throw enough hardware at it.
Be sure to read this:
http://codex.gallery2.org/Gallery2:Performance_Tips
Check this out too:
http://codex.gallery2.org/Gallery2:Scalability
Joe7 has over 14,000 users, though I don't know if he's using the User Album plugin. I guess I could signup and see. I assume he is since he's got user albums split out. He even lists the hardware he's using to run the site: http://gallery.menalto.com/node/50009#comment-329558
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 22
Would it be solved easily if it integrated with Drupal?
which each Drupal users have it own photo album by Gallery 2