Let's say you had a file which you wanted to implement security on. The user security is stored as id#'s in the table.
So....
File Security
mupic.jpg 2,5,3,7,15,22,101,33
Another way I do this is to create navigation. For instance:
my Message | 001,002,001,005
I have done something like this with relational tables and then did it with comma delimeted sets. The comma delimeted sets were three times after and much easire to work with. There are times to use relational DB's, this is not one of them.
These users would all have access to this file. I could make a secondary table and join the two together. But I would wrather store the data in a field and keep everything as a flat table.
The other problem is I also have user groups and file groups which will also be linked. If I create table for all of this, it is going to get harry.
Performance wise, relational DB for this will provide better readability and possibly a little more control, but I am going to take a hit on performance. And I will also need to do more programming for a variety of reasons.
The reason is, I have alot of tables that are going to need this kind of security. If I have to set up additional tables for security I am basically looking at 1 table + 2 tables for security. If I have 10 tables then I need 30 all together which is alot of maintenance.
Mysql has support built in for this type of activity. So I want to take advantage of what mysql is already offering. This stuff was created by MySql for this reason, for creating navigation and so on.
This is actually a much better method for me to deal with and requires far less programming and maintenance.
But I just need to know how to group on these fields. The abiliy must be there, MySql supports everything else but this. Hard for me to believe.
Alot of writing, uh? 🙂