[gentle-devel] GentleList and Transactions
Brought to you by:
mnmr
From: Andreas S. <and...@gm...> - 2004-08-23 15:08:09
|
Hi all, at the time i'm dealing with the topic GentleList and Transactions. My first idea was to add a property, which holds a transaction, to GentleList and then use it for all updates if the user sets this property. But after thinking a little while i found this idea not so good. We have an open transaction over the time the user handles the data in the GentleList. This leads to a increased probability of deadlocks. Second think about the problem leads to the following solution: All changes in the GentleList must be recorded until Persist() is called. Specially inserts and deletes could no longer be persisted immediately. Persist() makes all changes in the database in a single transaction. Did anyone have a better idea ??? Regards Andreas |