02-28-2010 10:28 AM
I will be requesting indexes on a table but not sure whether I need to request two seperate or just one index. My WHERE clause has an OR clause for example:
WHERE field1 in ...
OR field2 in ....
Do I need to create one index field1, field2 or do I need two indexes field1 and field2
Thanks
02-28-2010 10:42 AM
I think if you have 2 indexes, one on FIELD1, and the other on FIELD2. then the system will be try to match index access on either index.
If you have only 1 index on FIELD1+FIELD2 then it is not possible that one index can satisfy both predicates in the WHERE clause.
a®
02-28-2010 10:42 AM
I think if you have 2 indexes, one on FIELD1, and the other on FIELD2. then the system will be try to match index access on either index.
If you have only 1 index on FIELD1+FIELD2 then it is not possible that one index can satisfy both predicates in the WHERE clause.
a®
03-01-2010 8:31 AM
Hi,
> I think if you have 2 indexes, one on FIELD1, and the other on FIELD2. then the system will be try to match index access on either index.
>
> If you have only 1 index on FIELD1+FIELD2 then it is not possible that one index can satisfy both predicates in the WHERE clause.
>
> a®s
would you explain what you mean with an example please? It sounds a little bit strange...
Kind regards,
Hermann