Increase Connection Throughput By Requesting Multiple Records At Once

By default, the CacheSize property of the Recordset object is set to 1 for all cursor types. By increasing the CacheSize, you can increase the number of records the provider will retrieve at one time into local memory. For example, if CacheSize is 10, the provider will retrieve the first 10 records when first opening the Recordset object. As you move through the Recordset object, the provider uses the data from the local memory buffer. When you move past the last record in the cache, the provider retrieves the next 10 records from the data source.

 rs.CacheSize = 10rs.Open strSQL

Recordset caching doesn

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: