I have a 5.0.15 database with a table with a few million rows and 408
different dates in a date field. If I do 'SHOW INDEXES IN TABLENAME'
the output says the cardinality of the DATE index is 568289. I take it
this is right, but other indexes in the table have cardinalities that
sort of look more in line with what I expect; DATE just appears to be
wrong. Is it? I'm trying to re-write some queries to narrow searches
quicker by using 'smaller' indexes first.
thanks,
r
different dates in a date field. If I do 'SHOW INDEXES IN TABLENAME'
the output says the cardinality of the DATE index is 568289. I take it
this is right, but other indexes in the table have cardinalities that
sort of look more in line with what I expect; DATE just appears to be
wrong. Is it? I'm trying to re-write some queries to narrow searches
quicker by using 'smaller' indexes first.
thanks,
r
Comment