Which would be faster? I know that using an 'or' can slow down the performance of a for each but would it be significant enough to make the second option faster? Note: field is defined as a non-unique key.
or
Code:
For each db-table
where db-table.field = 1
or db-table.field = 2:
or
Code:
for each db-table:
if db-table.field <> 1
and db-table.field <> 2
then next.