Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is traditional do while...enddo faster than sql select ?
Message
From
16/08/2007 09:01:56
Suhas Hegde
Dental Surgeon
Sirsi, India
 
 
To
16/08/2007 08:25:35
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01248424
Message ID:
01248490
Views:
33
>>There could also be some overhead by opening the table inside the SELECT.
>>
>>>Seek reads little of the index. SELECT reads much more of the index.
>
>As he did include the use and the seek in his sample code, I hoped he'd be including that in the comparative timing.
>
>It could also be that he created a local table and appended records into it in the do while, while the query created a cursor on the server.


hi Mike,

Got a new HD and my problem was solved.
My POV :- (I have tested this)
By the way Opening the table shared actually doesnt load the whole table into memory.

Try my code from the earlier post and check the timings ...

You might need to restart the system in between tests..

Also Faster would have been Sacn while .. endscan. Isnt it ?

suhashegde
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform