Before opening the CLOB query:
33,6 MB, nothing special
After opening CLOB query:
71,4 MB, nothing special
After scrolling through dataset without accessing anything:
219 MB, 27427 TZOracleClob objects created, with the total size of 6,5 MB (just the size of TZOracleClobs)
DeLeaker can make a diff between two snapshots, so I made an allocation snapshot after opening and scrolling through the query. Result is the following: All TZOracleclob objects were created at ZDbcOracleResultSet : 2333 (TZOracleAbstractResultSet.GetBlob)
Code: Select all
SQLT_CLOB: with TZOracleColumnInfo(ColumnsInfo[ColumnIndex{$IFNDEF GENERIC_INDEX}-1{$ENDIF}]) do
Result := TZOracleClob.Create(FOracleConnection, PPOCIDescriptor(P)^, CharSetForm, csid, FOpenLobStreams);
I also think I managed to mess up my git repository as today after refreshing opening is blazing fast (as it should be) and nothing is preallocated after opening the query.