Hello,
When I use the short-circuited && operator in a LINQ query, LL 2.6, the query output appears to be bracketed in the short-circuited order:
WHERE (
( ( ( ( ( ( ( ( ( ( ( (
[LPLA_1].[field1] = 43876)
AND ( [LPLA_1].[field1] = 699891))
AND ( [LPLA_1].[field2] = 15640))
AND ( [LPLA_1].[field3] = 1))
AND ( [LPLA_1].[field4] = 3284))
AND ( [LPLA_1].[field5] = 1))
AND ( [LPLA_1].[field6] = 0))
AND ( [LPLA_1].[field7] >= '3/11/2010 12:00:00 AM'))
AND ( [LPLA_1].[field8] < '3/12/2010 12:00:00 AM'))))))
Does anyone know if there is:
-
A SQL Server performance implication of feeding it the WHERE predicates with short-circuited where clauses with all the parentheses?
-
A way to just list the predicates without the short-circuiting logic (no parentheses), which is how I would normal type the SQL if I was typing the query?
Thanks.
Can1