Method: OCI8::Cursor#prefetch_rows=
- Defined in:
- ext/oci8/stmt.c
#prefetch_rows=(aFixnum) ⇒ Object
Set number of rows to be prefetched. This can reduce the number of network round trips when fetching many rows. The default value is one.
FYI: Rails oracle adaptor uses 100 by default.
564 565 566 567 568 569 570 571 572 |
# File 'ext/oci8/stmt.c', line 564 static VALUE oci8_stmt_set_prefetch_rows(VALUE self, VALUE rows) { oci8_stmt_t *stmt = TO_STMT(self); ub4 num = NUM2UINT(rows); chker2(OCIAttrSet(stmt->base.hp.ptr, OCI_HTYPE_STMT, &num, 0, OCI_ATTR_PREFETCH_ROWS, oci8_errhp), &stmt->base); return Qfalse; } |