How Memory & Disk Space Are Used During an SQL SELECT CommandLast reviewed: September 15, 1995Article ID: Q136765 |
The information in this article applies to:
SUMMARYThis article explains how Visual FoxPro uses memory and disk space during an SQL SELECT command.
MORE INFORMATIONSQL uses as much internal memory as it can for file caching (read buffering), sorting (for ORDER BY, GROUP BY, SELECT DISTINCT, and UNION DISTINCT), and performing joins. This memory is limited by the setting of SYS(3050). When executing complex queries, SQL sometimes generates intermediate temporary tables. These temporary tables consist of the result of one of the following:
In addition, temporary files are used while performing a sort if the entire sort cannot be performed in memory. The size of the temporary sort files for a given sort should be no larger than:
(record length + key length) * (number of records) * 2In addition, SQL creates a temporary index file to perform a join if no index exists. Creating the index may create temporary files also.
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |