Hi, I recently tracked down a strange bug in our site where 2 object existed but the code was expecting only one.
I think this is due to get_or_create, which doesn't appear to be atomic. What I assume happened is that two requests came in close together and tested for the existence of the object I was creating. Both requests detected that the object didn't exist and went on to create a new one. Could this be the case? And if so, should I not expect 'get_or_create' to be an atomic operation? Regards, Will McGugan -- Will McGugan http://www.willmcgugan.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---