M
M
mrHalid2020-02-19 22:23:16
MySQL
mrHalid, 2020-02-19 22:23:16

What is the best way to store JSON or MSQL attributes?

I have a need to store the attributes of a field in the database, how can I best implement this.
The first option is to store this data in the json field of the MSQL table as json, but there is a problem with records

5e4d8abdd92d3655971843.png

. The second option is to scatter it across tables. Schema field_categories
fields field_attributes field_options The question is will this be more optimized in the long run?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-02-20
@saboteur_kiev

So how do we know how often what requests need to be made.
For sampling by different fields, it is clear that it is more convenient to scatter over the fields or even a table to simplify indexing.
If you take out all the json by id, then it may be faster to store json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question