I am working with a custom ORM which writes mySQL queries. Basically, no matter what we want to evaluate in our WHERE clause of our mySQL statements, it starts with
WHERE TRUE AND...
My friend claimed that mySQL optimizes the query so the True will never affect the actual timing of the mySQL query. Is he right or is it worth my time to rewrite the ORM to no longer have the TRUE statement? I will eventually do this regardless because I hate how it looks and it was lazy code which caused this in the first place, but I need to know how high on my list of priorities this should be.