Skip to content

Commit a6b1f59

Browse files
committed
Add prefetch note
1 parent c5b19c8 commit a6b1f59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,11 @@ to return query results, see [Tuning Fetch Performance](#rowfetching).
17631763
The `prefetchRows` value is ignored in some cases, such as when the query
17641764
involves a LOB.
17651765

1766+
If you fetch a REF CURSOR and subsequently pass it back to a PL/SQL block, then
1767+
set `prefetchRows` to 0 during the initial query to ensure that rows are not
1768+
internally fetched from the REF CURSOR by node-oracledb thus making them
1769+
unavailable in the PL/SQL code.
1770+
17661771
The default value is 2.
17671772

17681773
This property may be overridden in an [`connection.execute()`](#execute) call,

0 commit comments

Comments
 (0)