> "ORing on two different fields" is what I have been asking about :).

This is not optimized, and I don't think it is set to be optimized until
5.1 (as per someone else's comment).

> Using a composite index was suggested

This is bad information. It works for AND, not for OR.

You have two workarounds: temp tables and unions.

You can have it use one index, though. And you can give it a hint on
which index it ought to use if you think you know better than the
optimizer.

At any rate, this is one of MySQL's deficiencies that many of us have
worked around for a long time.

--steve-



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

Reply via email to