I would like to suggest patches for OR-clause optimization and using index for searching NULLs.
-- Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru WWW: http://www.sigaev.ru/