I have a project using C# and MySQL. I need to store permissions for a admin portal setting. There is currently 6 main permissions( read, write, view, update create...) but each of these permissions can be applied to n entities. so a user can have create, read to site a, d , f but have no permissions to the other 100+ sites. I thought of using bits added together with each site: so perm table would have
perm table
userid int(11)
perm int(4)
siteid int()
and the data would be userid = 10, perm=5 siteid=6; userid=10, perm=5, siteid=212 ...
a developer wants us to xml stored into the database so that it could look like: a 1 1 something liek the above. I need help, what do most people do? which is better for performance, we have asite that needs to be really fast. the permission structure gets checked on most saves. Thak for your help in advance.