how mysql optimize where clauses init commit