D
D
Dolosweb2020-04-14 18:29:09
MySQL
Dolosweb, 2020-04-14 18:29:09

What is more productive in mysql (innodb) several small tables or one large one?

What is better for performance and saving iron resources - split data into several tables or have one big one?

1,000,000 records of 0.03 MB each.

Product table. Sorting of goods, search for goods, rating on the main page. Random goods.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Mirilaczvili, 2020-04-14
@Dolosweb

Tables should be designed so that the data of one entity is not "smeared" across different tables.
And several long tables are better than one wide one. But at the same time, so that there is as little need for JOIN as possible.
It is better to separate the product rating from the products because it changes relatively often.
Without the structure of the tables and what queries it is impossible to give specific advice.

D
Dimonchik, 2020-04-14
@dimonchik2013

a few, of course,
if you know what you're doing)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question