Re: [Maypole] Re: role based authentication

From: Peter Speltz (peterspeltz at yahoo.com)
Date: Wed Jan 12 2005 - 21:57:48 GMT


--- Dave Howorth <Dave.Howorth at acm.org> wrote:

>
> My main worry is whether there'll be performance issues, but I'll deal
> with those when they crop up. I could see some benefits to using another
> repository, perhaps LDAP, or benefits of simplicity from using simple
> files if you're prepared to use vi/emacs/whatever as the admin
> interface. I don't think I'd personally use XML because of the
> performance and memory footprint penalty versus something like YAML, but
> it's cool if it fits with other aspects of your project.
>
> Cheers, Dave
>
>

Regarding you're Plugin, for non database based models using a database could
be a problem :). But i don't care about them :). just kidding. Anyway, i'm
wondering if you cached a hash of {Class=> [actions,action2...], } (the first
time you authorized) in the user session would that eliminate worries of
performance? Then authorize would automatically update the cache if the user
permissions change. Maybe still a database hit everytime but just a simple
check of a flag. I don't know.

=====
pjs

                
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
 

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT