What is the best (more quickly) to do insert a lot of records?
Code: Select all
IBQuery.Sql:='insert into ......';
IBTransaction.StartTransaction;
IBQuery.Prepare;
while not ...
begin
IBQuery.ParamByName('...'):='....';
IBQuery.Execute;
end;
IBTransaction.commit;
Is it the same law for 10 000 records or 1 000 000 records?
Thank you for help