On Aug 6, 2007, at 10:49 PM, MB Software Solutions wrote:

> Got this line of code that looks up data in a local view:
>
>     LOCATE FOR cRecType = tcRecType AND iKey = tiKey AND nJobID =
>     this.nJobID
>
>
> I've got separate indexes (temporary ones since it's a local view!) on
> cRecType, iKey, and nJobID
>
> My understanding is that Rushmore will notice these indexes and use
> them.  Would it be better to create a compound index and simply do a
> SEEK instead?  I'm gonna try that now but thought I'd get some Fox
> discussion going here.  <g>

        First off, this is a view, which means that you shouldn't have a ton  
of records. My guess is that a LOCATE even without indexes will be  
plenty fast.

        Are you seeing delays that are causing you to pursue this?

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to