Hey! I figured out this one myself: 

On Apr 19, Adam Wolff wrote:
> * Question 2:
> Why does introducing an extra WHERE clause make things slower?
> If I do this:
>     SELECT * FROM contacts WHERE fullname LIKE "j%" AND user_id=1
>     ORDER BY fullname LIMIT 10;
> 
It's because the index needs to be on user_id, fullname -- not just
user_id -- in order to use the index. This second problem is pretty much
solved now.

A

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to