chunkSize property
The server LOB-prefetch chunk size in the same units as length
(characters for CLOB/NCLOB, bytes for BLOB), or 0 when unknown.
It does not bound read / write amounts, but it IS the default piece
size for textStream / byteStream (node-oracledb lob.pieceSize parity),
and a multiple of it is the recommended explicit pieceSize: Oracle stores
and transfers a LOB in chunks, so piece boundaries aligned to them avoid
re-reading a partially consumed chunk. When it is 0 the streams fall back
to defaultLobStreamPieceSize.
A handle from OracleConnection.createTemporary*() seeds this from a real
server GET_CHUNK_SIZE issued right after creation (node-oracledb
lob.js create() parity), so it is > 0 there. Measured values: 8,132
units for a table LOB and 32,600 for a temporary one, on both Oracle 23ai
and 21c.
Implementation
int get chunkSize => _locator.chunkSize;