Ask HN: How to handle a large collection of tags?
For example... in a relational database, should I use a unique id for the tag "funny" and every item with this tag is assigned through a middle table with this id... or is it better to save "funny" again and again in the database and get a new tag_id for it?... And then aggregate the tags through counts of the same word (no middle table is used in this case).
Or... Has anyone done something similar with a NON-relational database? For example in google App engine. Any way to assign tags to "items" ... and aggregate them (count, group by, sum...) efficiently? I'm trying to avoid running too soon in scaling problems... How far can I go with simple hardware? Thx.