I have a File Geodatabase table that I am querying against with an attribute index on a field called "STREET_NAME".
If I perform this query, it is very fast: SELECT * FROM STREET_RANGE WHERE STREET_NAME LIKE 'W JACKSON%'
However, if I add an OR condition and both sides of the condition reference the STREET_NAME field, it becomes very slow:
SELECT * FROM STREET_RANGE WHERE STREET_NAME LIKE 'W JACKSON%' OR STREET_NAME LIKE 'JACKSON%'
As you can see, I'm using LIKE in my expression, so using 'IN' instead of 'OR' is not an option for me. I read somewhere that if you 'OR' two conditions that reference the same indexed field, the index is not used. True statement? What are my options?
Thanks!
Michael Thompson
Westminster, CO