Article ID: 191172 - Last Review: March 10, 2005 - Revision: 2.1 FIX: Decrease in performance occurs with repeated execution of SELECT-SQL in Visual FoxPro for Windows 5.0 and in Visual FoxPro for Windows 6.0This article was previously published under Q191172 On This PageSYMPTOMS
There is a slow degradation of Visual FoxPro's performance with repeated
execution of SELECT-SQL statements. The results returned by SYS(1016) and
the time required to process SELECT-SQL statements gradually increase with
repeated execution of SELECT-SQL statements.
CAUSE
This is caused by repeated execution of a SELECT-SQL statement containing
WHERE and OR clauses, as in the following example:
RESOLUTION
Here are three ways to workaround this problem:
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: MORE INFORMATION
The amount by which the result returned by SYS(1016) increases is dependent
on the version of Visual FoxPro and the number of ORs contained in the SELECT-SQL
statement. With Visual FoxPro 5.0, the amount of increase in the
result returned by SYS(1016) is 16 times the number of ORs contained in the
SELECT-SQL statement. In Visual FoxPro 6.0, the amount of increase in the
result returned by SYS(1016) is 24 times the number of ORs contained in the
SELECT-SQL statement. This behavior does not occur with Visual FoxPro 3.0.
Steps to Reproduce Behavior
| Article Translations
|
Back to the top
