Just for notice...in few words... i've modified some files of django.db.models putting a decorator function on all those functions that are critical (get_or_create, save, create, delete, add, remove, etc.). The decorator function just does :
* RLock.acquire * execute the requested function * RLock release (even if exception raised of course) * give the result or exeception back Everything seems to be ok. I am serializing all those operations that can have problems in a multithreaded scenario. Of course concurrent operations on DB will be slower 'cause of the serialization, but they will be safe and I think that's much more important. And obviously this is just a quick and not better solution. What do you think about? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---