Method: OCI8#prefetch_rows=

Defined in:
lib/oci8/oci8.rb

#prefetch_rows=(num) ⇒ Object

Sets the prefetch rows size. The default value is 100. When a select statement is executed, the OCI library allocate prefetch buffer to reduce the number of network round trips by retrieving specified number of rows in one round trip.

Note: The default value had been 1 before ruby-oci8 2.2.0.


332
333
334
# File 'lib/oci8/oci8.rb', line 332

def prefetch_rows=(num)
  @prefetch_rows = num
end