I have a large table("test") in my MySql type database.Table size is around 450Mbyte.I am using Borland C++ Builder 5.My compilier is giving "out of memory" exception while executing
"Table_Test->Active=true;" statement.
Apperantly component (TMyTable) is trying to put whole table into memory.
Could you please give me some idea to overcome this problem except shrinking table size?.I am interested with solutions which can modify component properties which can avoid taking whole table into memory but taking piece by piece.
Thank you.
Code: Select all
TMyTable *Table_Test;
Table_Test = (TTable*)(new TMyTable(this));
// ------ connect tables to CDR Database -------
((TMyTable*)Table_Test)->Connection = ptMySqlDatabase;
((TMyTable*)Table_Test)->TableName = "test";
Table_Test->Active = true;
if(Table_Test->RecordCount)
{
Table_Test_exist=true;
}