Hi folks, I'm beginning to develop a polling system for a web site, the coding is no problem, but my question is in relation to the database design.
What would work best:
1. One DB, one table, each row is a poll.
2. One DB, each table is a poll.
3. Each DB is a poll.
To help you to help me, let me tell you a bit about this system, it will be used only by the site registered users, so each vote can be traceable and done once only from that user.
Then I also want users to be able to create polls with the question and answers, data of who creates the poll is also collected.
I'm inclined to adopt option N.1, that would work faster, but each row (poll) would have to have lots of colums, not only for the creator, but also for the question, answers, votes, who voted and when and all the rest of it.
If I'm not going for option N.1, it would mean that tables and/or databases have to be dynamically created, and even worse, several calls to several DB's and/or tables have to be made.
Do you guys think going for option N.1 is the best or possible at all?
If you haven't heard of it, then you most likely don't need it.
---------------------------------------------------------------------
---------------------------------------------------------------------
What would work best:
1. One DB, one table, each row is a poll.
2. One DB, each table is a poll.
3. Each DB is a poll.
To help you to help me, let me tell you a bit about this system, it will be used only by the site registered users, so each vote can be traceable and done once only from that user.
Then I also want users to be able to create polls with the question and answers, data of who creates the poll is also collected.
I'm inclined to adopt option N.1, that would work faster, but each row (poll) would have to have lots of colums, not only for the creator, but also for the question, answers, votes, who voted and when and all the rest of it.
If I'm not going for option N.1, it would mean that tables and/or databases have to be dynamically created, and even worse, several calls to several DB's and/or tables have to be made.
Do you guys think going for option N.1 is the best or possible at all?
If you haven't heard of it, then you most likely don't need it.
---------------------------------------------------------------------
---------------------------------------------------------------------