Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xbase commands Vrs Sql commands
Message
From
10/05/2005 10:38:06
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01011885
Message ID:
01012435
Views:
25
>>>hi,
>>>
>>>I always find Xbase commands faster than Sql(statement) commands.
>>>
>>>
>>>Any case where Sql statments are faster ?
>>>Also i would like to know best prsctices where to use what ??
>>>
>>>
>>>TIA
>>>suhashegde
>>
>>Post a example where XBASE is faster.
>
>I think, that indexseek/seek/KeyMatch is usually faster than Select-SQL.

sure for 1 to 100 indexseek/seek/KeyMatch vs 1 sql select,
but a query's 100% optimized over a dataset with 100 or more rows it must always win,
otherwise is an error of the VFPT

A great advantage of the SQL query is:
- if the VFP engine improves can improve a lot
- the time of execution is relatively high with little dataset,
but it improves with great amounts, therefore the time perceived from the customer is less variable.
A great disadvantage of the query is:
- the probability of having a bug in a sql engine is greater regarding that one of one simple XBASE command
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform