I see that for each foundset (with 3 records in the foundset) it takes very much time to acquire the lock:
- Code: Select all
var _success = databaseManager.acquireLock(_foundset, _recordnumber) // _recordnumber = -1
I have 1500 parent records to process and 1500 times a foundset with 3 childrecords to lock and it takes a huge amount of time to process this.
In the debugger I can see a delay when acquiring the lock.
I checked it and it takes about half a second per lock.
Without the lock I do the process and this are the results:
Start: Thu May 14 14:40:30 CEST 2009
Finish: Thu May 14 14:40:45 CEST 2009
So 15 seconds to process. Now when activating the locking and I run only 1% of the records to process (so only 15 records to process), then I see the following:
Start: Thu May 14 14:45:06 CEST 2009
Finish: Thu May 14 14:45:46 CEST 2009
So 1500 records without lock cost 15 seconds and 15 records to process with lock cost 40 seconds.
Is that normal? I hope not
I tested with 3.5.9; I 'm not able to test it in 4.1.2
Martin