Im new to database design and I would like to know what is the best way to design a tagging system such as the one that stackoverflow has?
I found multiple ways to design such a system on the web, but not sure which one is the most optimal.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How about three tables – one of the entities that is to be tagged, one table that is the tags, and then a final table to link it all together?
EDIT: Another way to do it is to use two tables, one for the entities and one for the tags. Of course, you could use a No-SQL solution that directly supports tags.