Norman Biggar
Member
The query on my SDO is
FOR EACH Table NO-LOCK INDEXED-REPOSITION.
By using the addQueryWhere functionality, I can easily change this to
FOR EACH Table WHERE Condition1 AND Condition2 AND Condition3 NO-LOCK INDEXED-REPOSITION.
I want to force the query to use a particular index. How can I do this?
FOR EACH Table WHERE Condition1 AND Condition2 AND Condition3 USE-INDEX MyIndex NO-LOCK INDEXED-REPOSITION.
FOR EACH Table NO-LOCK INDEXED-REPOSITION.
By using the addQueryWhere functionality, I can easily change this to
FOR EACH Table WHERE Condition1 AND Condition2 AND Condition3 NO-LOCK INDEXED-REPOSITION.
I want to force the query to use a particular index. How can I do this?
FOR EACH Table WHERE Condition1 AND Condition2 AND Condition3 USE-INDEX MyIndex NO-LOCK INDEXED-REPOSITION.