A
A
Alter_Ego2012-08-15 16:20:05
MySQL
Alter_Ego, 2012-08-15 16:20:05

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

3 answer(s)
A
Anatoly, 2012-08-15
@taliban

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.

M
Max Kamashev, 2012-08-16
@ukko

Indexes must be allocated in memory. Each new index is a delay in adding/updating information.

S
skiedr, 2012-08-20
@skiedr

Depends on the type of table access. If there are more reads than records, then it shouldn't.
If the table is actively written, deleted, changed, then you need to think about how to reduce the number of indexes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question