Re: get_or_create isn't atomic?

2007-03-29 Thread Malcolm Tredinnick
On Thu, 2007-03-29 at 05:29 +, John Penix wrote: > I think I saw a get_or_create race condition today from concurrent > runs of our data uploader that uses the model API. Ouch. The docs > have several references to the api calls being atomic - now I'm > thinking get_or_create is an

Re: get_or_create isn't atomic?

2007-03-29 Thread Frankie Robertson
On 29/03/07, John Penix <[EMAIL PROTECTED]> wrote: > > I think I saw a get_or_create race condition today from concurrent > runs of our data uploader that uses the model API. Ouch. The docs > have several references to the api calls being atomic - now I'm > thinking get_or_create is an

get_or_create isn't atomic?

2007-03-28 Thread John Penix
I think I saw a get_or_create race condition today from concurrent runs of our data uploader that uses the model API. Ouch. The docs have several references to the api calls being atomic - now I'm thinking get_or_create is an exception. And I'm guessing lots of other people already know this.