开发者

Most efficient way to design database for tagging system

Im new to database design and I would like to know what is the best way to design a tagging s开发者_Python百科ystem 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜