﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31233	Improve handling of database connection and cursor resources	Jon Dufresne	Jon Dufresne	"Some areas of the code do not always close a database connection or cursor object after use. Instead it waits for the Python garbage collector to remove it.

Like file resources, database resource ownership and lifetime should be deliberate and deterministic.

A common example is the `_nodb_connection` property which opens a connection but is rarely closed.

https://github.com/django/django/blob/335c9c94acf263901fb023404408880245b0c4b4/django/db/backends/base/base.py#L609-L618"	Cleanup/optimization	closed	Database layer (models, ORM)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
