Hi Collin;

thank you for your suggestion:

[...] if the thread thinks that the object is new, it could try using 
> .save(force_insert=True). 
>

I have read to read the force_insert documentation without understanding 
100%. Assume threads t1 and t2 are racing to create the first element with 
this primary key, and that t1 wins the race. Then when t2 issues:
    
    save( force_insert = True )

will an exception be raised?

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b950b775-4f57-41b1-a96f-472b3e064e8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to