How To Use the FetchAsNeeded Property in Visual FoxPro 5.0Last reviewed: October 29, 1996Article ID: Q157047 |
The information in this article applies to:
SUMMARYIf the FetchAsNeeded property is set to true (.T.) on a remote view, the view retrieves only the number of records specified by the FetchSize property. If you scroll past the last record in the set, Visual FoxPro automatically requeries to get the next set of records, up to the total amount of records or to the number specified by the MaxRecords property.
MORE INFORMATIONYou can use the FetchAsNeeded property to optimize data retrieval through a remote view. By setting this property to .T., and setting the FetchSize property to 50, as an example, the query gets only 50 records at a time from the server. Returning a subset of the data results in shorter wait times than returning the entire data set. The following example demonstrates how the FetchAsNeeded property works. The example assumes that you have a DataSource named "SQLTest" setup for SQL Server's Pubs database:
REFERENCEVisual FoxPro 5.0 "Developer's Guide," Chapter 22 "Optimizing Client/Server Performance"
|
KBCategory: kbprg kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |