Hi,

i have the following problem. I have a table wherey to_id
and owner_id are of type unsigned int not null and both
are normal indexes. Unluckily a query like:
------
EXPLAIN SELECT * FROM `telegramme` WHERE to_id = 3157 or owner_id = 3157
------
returns very bad results:
------
table  type  possible_keys  key  key_len  ref  rows  Extra
telegramme ALL to_id,owner_id NULL NULL NULL 11488 where used
------
how could this be optimized or is this a bug of mysql, because the
indexes exist but are not used (even if specified with use index(..)) ?!

Thanks for any help,
Corin


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to