I probably didn't word the question right buy I have a query that is taking a substantial amount of time because of 'or'.
select stuff
from table1 T1
left join table2 T2 on T2.field1 = T1.field or T2.field2 = T1.field
where some condition
I have to check both fields to join. Is there a better way to do this?