Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 7 and Version 8 of SQLObjectAutoUpdateField


Ignore:
Timestamp:
08/28/06 13:10:14 (12 years ago)
Author:
ajones
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SQLObjectAutoUpdateField

    v7 v8  
    5353 
    5454''Kevin Horn'' 
     55 
     56Yes, it could be made atomic by turning off autocommits. The problem is that, when autocommits are on, you have a chance for the system to go down after a field is updated in the database but before the "date modified" attribute can also be changed, which would leave the data out of sync. The alternative would be to run the entire update in a transaction to make sure that it either is fully committed or is not written at all. 
     57 
     58''Adam Jones''