Query Speed Is Slower with ORDER BY ClauseID: Q117408 2.50b 2.50c | 2.50 2.50a 2.50b 2.60 3.00 | 2.00 2.50 2.50a 2.50b 2.60 kbprg
The information in this article applies to:
SUMMARYA query with an ORDER BY clause will be considerably slower than the same query without the ORDER BY clause.
MORE INFORMATIONThe query times will vary based on the size of the database queried and the hardware involved. However, the times illustrated below show a considerable difference between querying with and without an ORDER BY clause. When an ORDER BY clause is used, a new database is being generated by the query. Display status will show "table in use" as a table with a .TMP extension. Without the ORDER BY clause, the original database is used to generate the cursor query. Display status will show "table in use as the original table."
Steps to Reproduce Behavior1. Open a database with 10,000 records or more and open an RQBE window. 2. Make sure an index exists for the field on which the query will be 3. Query with an ORDER BY clause based on a different field. (In our test
Additional reference words: VFoxWin FoxMac FoxDos FoxWin 2.50 2.50a 2.50b
2.50c 2.60 2.60a 3.00 relational query by example
KBCategory: kbprg
KBSubcategory: FxtoolRqbe
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |