I am having problems setting the attribute OCI_ATTR_PREFETCH_ROWS. I need to set the value of this attribute in order to decrease the number of trips to the server. Until now I am having one row per trip and this causes my application to be very slow on some cases, so I need to set this value to a higher values. I have tried this for a time but I have get no result... the applications always brings one row per trip.....
Here is a resume of my code:
I have just read this on another post: when ref cursor is used in a stored proc as out parameter, setting the prefetch attribute has no affect. For ref cursor, does it always fetch the row from the server for each OCIStmtFetch2 call, even when prefetch count is set.
Is there any possiblity to prefetch rows when using ref cursors?