A
A
alestro2015-12-26 12:40:00
PHP
alestro, 2015-12-26 12:40:00

What is the best way to organize the storage of goods in a table?

What is the best way to store products in the database, given the fact that each group of products can have its own unique characteristics. For example, a TV has contrast ratio, but a microwave does not. And how to be in such a situation, what is the best way to organize the database?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
6
65536, 2015-12-26
@65536

eav

K
Kirill Arutyunov, 2015-12-26
@arutyunov

Related question: Is it possible to do without Entity-Attribute-Value?
They discuss including EAV.
Article to help: habrahabr.ru/post/45935

R
Roman Kitaev, 2015-12-26
@deliro

Use postgres
Use hstore

R
Rustam Kalimullin, 2015-12-26
@SusaninIT

Both a group and one product in a group can have their own characteristics. There are too many nuances.
Try to take some cms and see how the storage of goods is arranged there. For example, diafan has a well-thought-out base.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question