Answer the question
In order to leave comments, you need to log in
Table index size, what does it affect?
There is a table storing a large amount of data (tens of millions of records). To speed up selections from it, I decided to set up partitioning, because. typical queries allow this to be done conveniently (95% of queries will only require data from the 1st partition).
Stumbled upon the mysql requirement - the field by which we partition must be included in all indexes and all unique keys of the table. Nowhere to go, he added. As a result, now the table has several indexes, each of which includes from 2 to 4 fields. Already now the size of the index is about 2 times the size of the table. Can this negatively affect the performance of working with it?
Answer the question
In order to leave comments, you need to log in
Maybe, after all, you also need to search for indexes, and if it is very large, then it will take longer to search among very large data.
Indexes must be allocated in memory. Each new index is a delay in adding/updating information.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question