[TYPO3-dev] locking of records

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Jan 27 22:37:14 CET 2006


On 27.01.2006 20:44, Peter Russ wrote:

>> I think more interesting would be consistency checks on SAVING of
>> records. This is called Optimistic Locking.

> [...]
> Good point.
> But how would you handle that technically?
> Checksum on what, which fields are relevant for the hash?

I would't use a checksum, just comparing some serial number that is
attached on every record and incremented after saving.

> IMHO it might be easier to refresh the lock automatically every minute
> and kill all obsolete locks when trying to open a record for editing. No
> cron required!

True, sounds like a nice solution.

Cheers,
Ernesto




More information about the TYPO3-dev mailing list