Rereading his initial query, u are right. this is not a situation of not having the right composite index.

Yup, u are counting many rows, and hence it will take awhile.


Michael Stassen wrote:

pow wrote:


In this case, u require 2 indexes on table b.
1. WHERE b.basetype = 0  (requires index on b.basetype)
2. b.BoardID = m.BoardID (requires index on b.BoardID)


No, this requires an index on m.BoardID, which he already has and mysql is using.

However, you are only allowed one index per table join.
Hence you need ONE composite index on table b with the fields b.basetype and b.BoardID.

Do you have that?


That won't help here.

Michael



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

Reply via email to