transactions or TUniLoader - which is faster

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

transactions or TUniLoader - which is faster

Post by sandy771 » Thu 12 Dec 2013 15:54

I am away from my desk so can't do any experimenst, but I just wondered whether moving from StartTransaction/Append/Post/Commit to using a TUniLoader is likely to make any difference to the speed at which I load data into a database.

I have a few million records to insert and time is of the essense. Is either one of these likely to be faster than the other, or are they basically the same operation?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: transactions or TUniLoader - which is faster

Post by AlexP » Fri 13 Dec 2013 13:07

Hello,

In most cases, UniLoader will work faster than using transactions, since special DB mechanisms are used for data loading. In some providers, UniLoader has an already embedded mechanism of automatic work with transactions during loading.

sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

Re: transactions or TUniLoader - which is faster

Post by sandy771 » Fri 13 Dec 2013 14:47

Thanks alex - moving to uniloader

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: transactions or TUniLoader - which is faster

Post by AlexP » Fri 13 Dec 2013 15:27

Hello,

If you have any other questions, feel free to contact us.

Post Reply