defaultLobStreamPieceSize top-level constant

int const defaultLobStreamPieceSize

Piece size (in the LOB's native units) that OracleLob.textStream and OracleLob.byteStream fall back to when the handle reports no server chunk size (chunkSize == 0).

The default is OracleLob.chunkSize whenever the server reported one — node-oracledb lob.pieceSize parity, whose default is also chunkSize, with a multiple of chunkSize recommended for efficiency. Every fetched and created-temporary handle carries a real chunk size (measured: 8,132 units for a table LOB, 32,600 for a temporary one), so this constant is only reached by a handle whose prefetch metadata omitted it.

Implementation

const int defaultLobStreamPieceSize = 32768;