[Maria-discuss] mariadb prefers using indexes despite low cardinality
![](https://secure.gravatar.com/avatar/e0552e655707295487be4e686f10c17d.jpg?s=120&d=mm&r=g)
2 Jan
2016
2 Jan
'16
9:36 a.m.
Hi! Taking the example as provided in my last mail: I created a table with 4 text columns and indexed the 4th column with a prefix length of 1. To trigger high no. of index scans I used the following where clause -- f4 like 'klas9dufa9us09df8a8%' Explain shows mariadb still chooses to use the index despite high no. of scans required.
3327
Age (days ago)
3327
Last active (days ago)
0 comments
1 participants
participants (1)
-
dE