Hybrid-django server leaving connections open...

2007-11-13 Thread John Penix
Hi, We've stuck a bit of ORM-using code from our "pure" django server into another server that was only using django templates. We have been seeing connections left open occasionally. I browsed the mailing list archives and it sounds like django should be closing the connection. I'm wondering

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.