P
P
phpus2015-03-27 23:52:19
PHP
phpus, 2015-03-27 23:52:19

Good practice? Storing data... json?

RESOLVED.
Here is an example:a648c813234644d69fb0a308b3c16156.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
6
65536, 2015-03-28
@phpus

what for? In my opinion, this is the place to apply the relational principle of storage. I made a store, 100k goods, each with 30-50 parameters, everything flies. the integrity of the database does not need to be monitored by hand. and so you get a microsubd, some kind of your own index. this is a gemara and then the data will suddenly fall apart and will not be repaired quickly.
gyazo.com/e27e934b9bf1c2431a7fbf9db9c501f4 here is a diagram. products and properties belong to categories. property values ​​are hung out on their product links.
your version is also implemented. just for what?
In terms of speed, I can definitely tell you that all this works quickly. the load slightly increases depending on the number of parameters included in the request (checked boxes, sliders, etc.). it doesn’t depend on the number of goods at all, we tested for 600k

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question