Z
Z
Zubastik_12018-03-13 11:56:54
MySQL
Zubastik_1, 2018-03-13 11:56:54

How to properly organize a large database - one large table or split into small ones?

It is necessary to create a data search by cities. Filters will be used to search for data. What is the correct way - to make one table general or for each city its own table? The data is the temperature by day for 100 years, for example, that is, there will be a lot of data, plus it will be necessary to carry out calculations on them - for example, sampling the coldest day for such and such a month in all cities.
How is it better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-03-13
@Zubastik_1

If all this data is of the same type, then push it into one table. You can set up partitioning so that data is physically placed in different files according to some criteria.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question