#1 2013-07-10 00:33:08

pedrorjbr
Member
Registered: 2013-07-10
Posts: 1

Bulk Load - Out of Memory

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

Board footer

Powered by FluxBB