#3462: model objects can fail during save
----------------------------------------------+-----------------------------
Reporter:  Jack Moffitt <[EMAIL PROTECTED]>  |       Owner:  adrian          
  Status:  new                                |   Component:  Database wrapper
 Version:  SVN                                |    Keywords:                  
   Stage:  Unreviewed                         |   Has_patch:  0               
----------------------------------------------+-----------------------------
 Currently django uses an existence test (at least on postgresql_psycopg2
 backend, but I assume it does the same thing everywhere) before and INSERT
 or UPDATE to decide which to do.  This can fail if another connection does
 an INSERT or a DELETE while the existence test is running, even in a
 transaction block (unless the transaction isolation level is serializable)
 as each statement can potentially see a different view of the database
 depending on which transactions have already completed before that
 statement executes.
 
 I'm not sure how to fix this (serializable transactions are probably not
 the right answer), and it is probably an edge case for most applications,
 but I'm entered a bug for it so that people know this issue exists.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3462>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to