Hi, I've got a funny question for you, sql gurus out there (or maybe inhere?).
I got this habit when I need to construct a query at runtime. In order to avoid multiple 'if' checks I just go and write 'where true '. Then the rest is another part of the clause in the form, of course of ' and true ...' and continues with useful filtering.
My question is: do those 'where true and true' affect query performance? Right, best answer is to make some tests, but out of your experience can what can you say about this approach?
By the way, the sql engine that I am particularly interested is MySql.