What is best way to store array data in MySQL / Rails?
Lets take Stackoverflow as an example:
Two models: Questions and Tags
A Question can have many Tags.
Should a separate table "Question_tags" be created to manage the
associations or is there a way to create an array field in the Questions
table.
Which is better? Would a dedicated "Question_tags" table be overkill?
No comments:
Post a Comment