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 assign each user to a group, total 40000 groups , each group have its own permission.
This solution is not feasible as I know of the poor ACL performance due to the large number of permission rule
http://codex.gallery2.org/Gallery2:ACL_Performance

To work around, I think of a solution as follows
1: For all register users, there is only one permission rule----they are NOT allowed to "add" and "edit" all album
2: a custom module is made such that when the user log in, the module will shown the photos in his album, he can add/edit/delete his photo through the API

May I know whether it is feasible for both Gallery2 and Gallery3?

Thank you very much

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2010-06-05 19:52

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

 
funfun167

Joined: 2010-03-14
Posts: 22
Posted: Sun, 2010-06-06 04:24
suprsidr wrote:
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

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2010-06-06 04:38
Quote:
It seems the useralbum modules lead to problem when the number of user reach 40000

Not on the right hardware. But 40000 will require very hearty hardware whichever system you choose.

Quote:
May I know whether it is feasible for both Gallery2 and Gallery3?

Quote:
and I intend to use Gallery3

unsubscribing

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
funfun167

Joined: 2010-03-14
Posts: 22
Posted: Sun, 2010-06-06 04:52

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-06-06 05:37

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

 
funfun167

Joined: 2010-03-14
Posts: 22
Posted: Sun, 2010-06-06 05:53

Thank you

Then how to deal with such number of users and albums, such that the user can only edit his own album...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-06-06 16:29

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

 
funfun167

Joined: 2010-03-14
Posts: 22
Posted: Sun, 2010-06-06 16:41
nivekiam wrote:
Do you really have 40,000 users or are you just hoping to grow your site that large?

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

 
funfun167

Joined: 2010-03-14
Posts: 22
Posted: Sun, 2010-06-06 16:52

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

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-06-06 16:56

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

 
funfun167

Joined: 2010-03-14
Posts: 22
Posted: Sun, 2010-06-06 17:03

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2010-06-06 21:31

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

 
funfun167

Joined: 2010-03-14
Posts: 22
Posted: Fri, 2011-01-14 19:51

Would it be solved easily if it integrated with Drupal?
which each Drupal users have it own photo album by Gallery 2