tags:

views:

66

answers:

1

I currently have a web-application that implements a rudimentary form of ACL using UNIONs in mysql, but it's somewhat limited, and doesn't necessarily scale that well

I'm interested in any alternative ACL algorithms that could be implemented efficiently in SQL.

Thanks!

+3  A: 

I've used this document as a model for implementing row level security in a Sql Server based CRM system. In my implementation, rows are made available to a given user based on their Active Directory group memberships.

The performance was surprisingly good when appropriately indexed.

http://msdn.microsoft.com/en-us/library/cc966395.aspx

JSR
Yes, good indexing is key here.
Loki
I'll have a look at translating this logic to more generic mysql... but thanks!
FilmJ
No one came up with an answer that's suitable for mysql but I think this should give me enough to build my own solution, which I will post here when I do for the benefit of the community.
FilmJ