I'm making a system using PHP and MySQL that will allow me to keep track of the various board games I own and what all of my friends think of them. We're big gamers in that aspect so I want to be able to figure out what games would be best to play with which friends.
Here's my question: I add a new game. Whats the best way to append the data into the database of their opinions.
I've thought of adding new columns as I get new games titled 'opinionXX' where XX is the ID of the particular board game. I think that could result in very slow performance over time.
So then I came option B. I'll create a new table for each game as it's created named gameopinionXX, again where XX is the ID of the game. I would use the fields gamerID, opinion and comments. Where gamerID is a primary key unique so every person can only have one opinion.
Is there any loss to creating tons of tables vs creating very large tables?
Or is there a better approach I haven't thought of yet?
Thanks in advance,
Skreet
Here's my question: I add a new game. Whats the best way to append the data into the database of their opinions.
I've thought of adding new columns as I get new games titled 'opinionXX' where XX is the ID of the particular board game. I think that could result in very slow performance over time.
So then I came option B. I'll create a new table for each game as it's created named gameopinionXX, again where XX is the ID of the game. I would use the fields gamerID, opinion and comments. Where gamerID is a primary key unique so every person can only have one opinion.
Is there any loss to creating tons of tables vs creating very large tables?
Or is there a better approach I haven't thought of yet?
Thanks in advance,
Skreet
