#17251: select_for_update tests threads should close connections manually
--------------------------------------+--------------------
     Reporter:  akaariai              |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Uncategorized         |    Version:
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  1
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 This is a small patch which closes two connections taken in threads.

 It is good to close the conncetions manually, as they are thread locals in
 DatabaseWrapper, and thus new connections are created for new threads.

 The connections will be closed by GC eventually, but IMHO it is good
 practice to close the connections manually, as they will not be used again
 anyways. They will be idle in transaction until they happen to be GCed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17251>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to