I have a tagging system in my mind and here are my ideas,
1, I can make a mongodb database and add tags to an embedded field and index them all
2, I can use SQL for it, I can add the tags as a new entry to a table
3, I can create another collection on mongodb and do it like this
for example the tag is "chicken", this is the document
tag:"chicken",
id:"1200000,32555,8787888888"
the tag is the chicken, the id is other documents that relate with the chicken, I think those systems will give me lots of headaches. especially the first one. Do you have any tagging system ideas for my need ?, by the way, there will be more than one million different tags and searched this tagging system before opening this question,
thank you