E
E
EVOSandru62019-06-11 09:23:18
PostgreSQL
EVOSandru6, 2019-06-11 09:23:18

What is the best way to store multiple related product categories in PostgreSQL?

Hello guys,
Tell me, if you need to store a lot of related categories for a product, then how will it be faster to retrieve a list of products with related categories?
a) create a link table with indexes
b) create a column with an array of category identifiers in the jsonp product table

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Sviridov, 2019-06-11
@EVOSandru6

I would recommend the first option. Because the second method is not only slower, but also less convenient in terms of writing SQL queries.

M
Mikhail Zakharov, 2017-07-19
@cashalot

You go to their website and go to the vacancies. You look at what frameworks they require from a PHP developer - it's either Symfony or Yii Framework.
Link to resume .

I
Ilya Beloborodov, 2017-07-19
@kowap

Not Symfony and not Yii, rather just self-written

M
Maxim Kozhin, 2017-07-19
@maximkozhin

EuroCMS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question