You are not logged in.
Pages: 1
Hello,
I am trying to make a bulk load in Synopse Big Table, but in certain point i receive "Out of Memory". I checked fastmm4 and it is not indicating memory leak.
WheN i call Table.UpdateToFile(true) i see in task manager that the library didnt deallocate too many memory. And the memory continues to grow.
The code is:
Table := TSynBigTableRecord.Create('D:\Projetos\Stoneage\Exemplos\IndexedFile\FileName.ext','TableName');
Table.AddField('text',tftWinAnsi,[tfoIndex]);
Table.AddField('int',tftInt32,[tfoIndex]);
Table.AddFieldUpdate;
for i:=0 to 10000000-1 do
begin
rec.Init(Table.Table);
rec.Field['int'] := RandomRange(0,9999);
rec.Field['text'] := 'Some text '+IntToStr(i);
aID := Table.RecordAdd(rec);
IF ( ((i mod 100000)=0)) then
begin
Table.UpdateToFile(true);
end;
end;
Last edited by pedrorjbr (2013-07-10 13:47:13)
Offline
Pages: 1