Does the order of columns in a WHERE clause matter?

With a decent query optimiser: it shouldn’t.

But in practice, I suspect it might.

You can only tell for your cases by measuring. And the measurements will likely change as the distribution of data changes in the database.

Leave a Comment