S
S
Stanislav2019-05-03 19:04:50
MySQL
Stanislav, 2019-05-03 19:04:50

Django ORM: database structure and query building for dynamic filter?

Greetings! It is necessary to display the number of products in each category and for each filtering parameter, do not show empty ones.
- Mysql database
- Filtering parameters are known (price, color, style, brand, pattern, composition, size)
- I would not like to use EAV, because no parameters are planned to be added. The
result is the following database structure
5ccc64ef6dfd0832201204.jpeg
. Is this structure suitable for such a task? How to make a request in the orm to fetch this data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-05-03
@Chebaa

RDBMS do not do well with such tasks. They are usually implemented by full-text search engines like Elasticsearch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question