Consider the following table example:
id | lang_from | lang_to |
---|---|---|
1 | chi | eng |
So the table contains information about translations, the translation has a direction (from and to), but when I do search the direction is not important:
WHERE (lang_from = 'chi' AND lang_to='eng') OR (lang_from = 'eng' AND lang_to='chi')
Is this an efficient way for the lookup?
P.S. I don't have indexes set, as long as it would give me an extremely low selectivity.