E
E
Emil Rakhmatullin2021-06-15 15:40:08
Database design
Emil Rakhmatullin, 2021-06-15 15:40:08

How to implement the management of the number of goods at different points?

For example, there are 30,000 products and 400 outlets.
How to manage the availability of goods at each outlet (as well as specify other product fields for a particular outlet: price, name, discount)?

If we implement in 3 tables: "goods", "points", "goods at the outlet",
THEN in the table "goods at the outlet" there will be 12 million records. This is not good from the optimization side, I guess. How can I implement this even without 3 tables in the database?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2021-06-15
@udjin123

Not how considering that it is necessary to store additional fields for each record, and why crutches and reinvent the wheel. It's ok 3 tables and 2 OneToMany relationships.
12k records is not that much.

E
emilagamamedov, 2021-06-15
@emilagamamedov

Make a separate base for each point, it still makes no sense for them to look at the availability at other points

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question