I was wondering about the filtering sequence that MySQL performs on AND gates. For example, consider the following query:
Does MySQL first select rows where ColA > 30, and then further filter the resultset for ColB < 15, or does it simply go through each row and select those rows that meet both criteria.
This is useful to know when indexing columns. Also, would anyone know of a good article or manual which explains this topic?
Code:
select *
from expl_table
where ColA > 30
and ColB < 15;
Does MySQL first select rows where ColA > 30, and then further filter the resultset for ColB < 15, or does it simply go through each row and select those rows that meet both criteria.
This is useful to know when indexing columns. Also, would anyone know of a good article or manual which explains this topic?