BUG: SQL-SELECT Performance Slower in 2.5x & 2.6 Than in 2.0

ID: Q117712

The information in this article applies to:

SYMPTOMS

An SQL-SELECT statement runs much more slowly in FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for MS-DOS than it does in FoxPro 2.0 for MS-DOS.

CAUSE

Not all SELECT statements will exhibit this behavior. The conditions found to reproduce this type of situation include the following:

NOTE: If only one of the above conditions is present, you will not necessarily notice a performance degradation.

RESOLUTION

To work around this problem, split the SELECT statement into at least two parts. Make sure that the initial SELECT condition is the one that narrows down the results the most. In this way, you will be working with a smaller result set that can then be narrowed down even further in subsequent SELECT statements. The performance of the SELECT statements will improve significantly.

STATUS

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, 2.5b, 2.6 for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional reference words: FoxDos 2.50 2.50a 2.50b 2.60 buglist2.50 buglist2.50a buglist2.50b buglist2.60 slow hang query KBCategory: kbprg kbbuglist KBSubcategory:

Last Reviewed: April 18, 1995