In my application, I have βarticlesβ (similar to posts / tweets / articles) that are tagged with descriptive predefined tags: i.e. "difficult", "simple", "red", "blue", "business", etc.
These available tags are stored in a table, called "tags", which contain all the available tags.
In each article, you can mark several tags that can be edited through the user interface.
It may be tempting to simply associate tags for each object with a strict array of identifiers for each tag and save it along with the article entry in my "articles" table:
id | title | author | tags
---+-------+--------+-------------
1 | title | TG | "[1,4,7,12]"
although I'm sure this is a bad idea for a number of reasons, is there a reasonable reason to do the above?
source
share