Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare speed of SQL Select
Message
 
 
To
16/09/2020 13:11:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01676140
Message ID:
01676153
Views:
45
>>Hi,
>>
>>How do you compare the speed between two SQL Select expressions?
>>Typically I would do it like this:
>>
>>nStart = seconds()
>>select * ......
>>nEnd = seconds()
>>nTime = nEnd - nStart
>>
>>
>>What I am not sure is how do you account for the fact that the 1st SQL Selects creates some data buffer (I think it does but I am not sure). So, if the buffering assumption is correct, the 2nd SQL Select will have an advantage.
>>Another approach, I think, is to do 1st SQL Select. Then, shut down VFP and on the next start to do 2nd SQL Select only.
>
>I wrote about this stuff here: http://tomorrowssolutionsllc.com/ConferenceSessions/Cant%20this%20application%20go%20any%20faster.PDF
>
>Tamar

Thank you. I will read this article.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform