WordPress Core – Optimizing meta_query generated SQL?

In case I am right about that possible optimisation, I have opened a ticket on Trac and submitted a patch: http://core.trac.wordpress.org/ticket/26281

My plugin’s page query time goes from 10+ seconds to 20ms… I hope there are no edge cases.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)