On Tue, Aug 24, 2010 at 7:57 PM, Kent Belan <[email protected]> wrote:
> Select * from tickets ;
>   where ticketno = 123 into cursor tTickets
> * this pulls a query with 1 ticket
>
> Select tTickets
> Go top
> Do while .not. Eof()
>   * do some stuff
>   select tTickets
>   skip 1
> Enddo
>
> The program delays on the go top line for 32 seconds and the skip 1 line for
> 12 seconds.
>
> I changed the code to:
>
> Select tTickets
> Scan
>   * do stuff
> Endscann
>
> And there is not delay. So why is there a delay with the first method ?

They are functionally the same AFAIKS.
Here's my guess: The first method is not using Rushmore, which the
second method is.

Try with SET OPTIMIZE OFF.

-- 
Paul

_______________________________________________
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