Mysql index dimension

I have the number of rows in row x, but all index metrics are much larger than x, how is this possible? If I understand correctly, index power is the number of unique rows of this index.

+3
source share
2 answers

FROM SHOW INDEX :

Cardinality
Estimate the number of unique values ​​in the index. This is updated by running ANALYZE TABLE or myisamchk -a. The power value is calculated based on statistics stored as integers, so the value is not necessarily accurate even for small tables.

+4
source

- . , Btree .

btree 1 10, 5 5 . 5 ( )

, , . , . , ,

... , .

0

Source: https://habr.com/ru/post/1756616/


All Articles