OracleLob.ChunkSize Property

Definition

Gets a value indicating the minimum number of bytes to retrieve from or send to the server during a read/write operation.

C#
public int ChunkSize { get; }

Property Value

The minimum number of bytes to retrieve or send.

Exceptions

The connection is closed.

The object was closed or disposed.

An Oracle error has occurred.

Remarks

The value returned by the ChunkSize property is not a setting of the .NET Framework Data Provider for Oracle. Instead, it is the value that the Oracle Call Interface (OCI) uses when communicating with the server. Use ChunkSize to ensure that client-side chunks are the same size. Reading or writing in smaller chunks does not cache data, and causes a less-optimized round trip to the server, because a full packet is not received or sent.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1