BuilderSpec
Programmer
Hi
I have a file with fixed format fields. I am writing a read loop to format and insert the records by:
ADOTable1->Insert();
// Format the record
ADOTable1->Post();
However it seems to take a long time. I have switched to batch updates by:
ADOTable1->LockType = ltBatchOptimistic;
ADOTable1->Insert();
// Format the record
// every 5000 records
ADOTable1->UpdateBatch(arAll);
ADOTable1->Post();
But again the updates seem to be faster but the UpdateBatch method seems to takes ages and in the end is only marginally quicker..
So question is this..
What is the best method / component to add lots of records from a file at once ? ( 70,000 records in my file ) . The above methods just seem too long...
Hope this helps!
Regards
BuilderSpec
I have a file with fixed format fields. I am writing a read loop to format and insert the records by:
ADOTable1->Insert();
// Format the record
ADOTable1->Post();
However it seems to take a long time. I have switched to batch updates by:
ADOTable1->LockType = ltBatchOptimistic;
ADOTable1->Insert();
// Format the record
// every 5000 records
ADOTable1->UpdateBatch(arAll);
ADOTable1->Post();
But again the updates seem to be faster but the UpdateBatch method seems to takes ages and in the end is only marginally quicker..
So question is this..
What is the best method / component to add lots of records from a file at once ? ( 70,000 records in my file ) . The above methods just seem too long...
Hope this helps!
Regards
BuilderSpec