Re: The query doesn't use the specified indexes

2010-06-29 Thread Ashish Mukherjee
If cardinality is high (i.e large number of rows returned in the set for your query), then mysql may need to resort to filesort. - Ashish 2010/6/21 Octavian Rasnita > Hi, > > I have made an InnoDB table and I am trying to search using some keys, but > they are not used, and the query takes a ve

Re: The query doesn't use the specified indexes

2010-06-21 Thread Joerg Bruehe
Hi Octavian, all! Octavian Rasnita wrote: > Hi, > > I have made an InnoDB table and I am trying to search using some keys, but > they are not used, and the query takes a very long time. > > Here is a test table: > > CREATE TABLE `test` ( > `id` int(10) unsigned NOT NULL AUTO_INCREMENT, > `sym

The query doesn't use the specified indexes

2010-06-21 Thread Octavian Rasnita
Hi, I have made an InnoDB table and I am trying to search using some keys, but they are not used, and the query takes a very long time. Here is a test table: CREATE TABLE `test` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `symbol` varchar(20) NOT NULL, `market` varchar(20) NOT NULL, `id_sy