FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour COMMIT
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
COMMIT
Posted: Fri Mar 20, 2009 10:44 PM

Is COMMIT from xHarbour slower than Clippers?
Thanks in advance
Otto

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: COMMIT
Posted: Sat Mar 21, 2009 01:51 AM

Otto,

I don't know the answer but I wonder why you ask? Even if xHarbour is twice as slow, with a single commit the user isn't going to notice (0.1 seconds vs 0.2 seconds).

If you are processing lots of records there is no need to do a commit after each one--that defeats the purpose of the buffer.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: COMMIT
Posted: Sat Mar 21, 2009 02:52 AM

Otto

If you are running thru a loop of records and you do a dbCommit() each time .. you will take a tremendious performance hit.

Generally, if I am in a loop and want to do a 'hard disk' write or flush the buffer .. 'ole clipper trick' .. move the record pointer .. like goto recno() . .where recno() is the record you just updated... then after your loop .. do a dbCommit()

Hope that makes sense.

Rick Lipkin

Continue the discussion