slow updates

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

slow updates

Post by sandy771 » Thu 19 Dec 2013 15:07

I have the following code whereby I am updating a number of records in table containing about 40,000 records. MessagesT is a TUniTable.

UniConnection1->StartTransaction();
for(int i=0; i<30; i++){
MessagesT->RecNo = tagged;
MessagesT->Edit();
MessagesT->FieldByName("Tag")->AsInteger = 1;
MessagesT->Post();
}
UniConnection1->Commit();

The code takes about 1 second to update each record which is too slow for my purposes. What can I do to speed this up?

Thanks

AndreyZ

Re: slow updates

Post by AndreyZ » Thu 19 Dec 2013 16:00

Please specify the provider (TUniConnection.ProviderName) you are working with.

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

Re: slow updates

Post by sandy771 » Thu 19 Dec 2013 16:02

Sorry Andrey

I am using sqlite and developing in Builder XE3

If you need anything else please advise.

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

Re: slow updates

Post by AlexP » Fri 20 Dec 2013 08:07

Hello,

We cannot reproduce the problem: the insertion code you provided works in less than fractions of a millisecond. Please make sure your DataSet, from which data is read, is not attached to visual components. Please specify your exact version of UniDAC, and send a sample and the DB file to alexp*devart*com

Post Reply