Easysoft
The Easysoft ODBC-Oracle Driver version 3.0 is our fastest driver ever. Trial it free.

Easysoft ODBC-Oracle Driver

How should I use the OCI_ATTR_PREFETCH_ROWS and OCI_ATTR_PREFETCH_MEMORY parameters?

Article : 00695
Last Reviewed : 19th July 2005
Revision : 1

If you set both parameters, the value in OCI_ATTR_PREFETCH_MEMORY will be used. The best choice of setting depends on numerous factors such as network speed and the amount of client side memory available. Both parameters are ignored when you bind arrays of columns.

If you specify OCI_ATTR_PREFETCH_MEMORY, this amount of memory is allocated. If OCI_ATTR_PREFETCH_ROWS is set, this value multiplied by the row size of memory is allocated. When a call to fetch is made all the memory allocated is used to store records from the server. The first call gets back n rows and subsequent calls to fetch do not make a network call until all n records have been returned from the client.

Use OCI_ATTR_PREFETCH_MEMORY if your records vary greatly in length, but note that not all the memory will be used when fetching a result set much smaller than the allocated memory. This is not an exact science, so try alternative settings until there is no detectable performance increase.

Applies To

Knowledge Base Feedback

* Did this content help you?
Yes
No
Maybe
 
* Please select one option based on your first choice:
I'm very satisfied
I think it will help, but I haven't tried it yet
It is helpful, but I need more information
It is helpful, but hard to understand
Seemed relevant in search results, but didn't help me
The information is incorrect
The page contains one or more broken links
 
  Suggest new content or let us know how we can improve this content:

 
  (* Required Fields)   



© 1993 - 2008 Easysoft Limited. All rights reserved.