On Sep 12, 10:46 pm, TP <[EMAIL PROTECTED]> wrote: > > This means an ORM object should have a > > special property on it recording which database connection it was > > loaded from. It also presumes we won't ever want to support the case > > I apologize for my ignorance as to how django DB connections work, but > will this lead to thread safety issues if one thread loads an object > and passes it into another thread? Or is the underlying Django > connection thread safe? > > Also, what if the connection has closed for whatever reason since the > object was loaded (due to DB connection timeout, DB restart, etc)?
Sorry, that was a clumsy explanation on my part. I didn't mean store the actual connection object; I meant store information about which database was used. How this is stored (DatabaseWrapper instance, DSN string, connection alias) is up to the implementation, but it should certainly take the factors you describe in to account. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---