Answer the question
In order to leave comments, you need to log in
What is the best way to store book tags in mySQL?
I am writing a library website. There was a need to store tags in a MySQL table (books are stored in this table). The structure is: klatz . There was an idea to store the tags for the book in the tags field as JSON, specifically like this:
{
"tags": [
// [тут теги]
]
}
Answer the question
In order to leave comments, you need to log in
in a separate table and another table of tag relationships to books.
You should always
start with third normal form.
Any denormalization, etc., is done later and separately, when there is an understanding of the tasks and bottlenecks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question