﻿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
35130	Document how to manually close database connections	Baptiste Mispelon	Salvo Polizzi	"I was reading about manual database connection management today and came upon this section (emphasis mine) [1]:

> If a connection is created in a long-running process, outside of Django’s request-response cycle, the connection will remain open **until explicitly closed**, or timeout occurs.

From what I understand, manually closing open db connections is done by calling `django.db.close_old_connections()`, but that function does not seem to be documented officially.
I'm not sure if the function is undocumented by design (it is after all a pretty unusual use-case and most users should never have to call it themselves), or if that was just an omission.



[1] https://docs.djangoproject.com/en/dev/ref/databases/#caveats"	Cleanup/optimization	closed	Documentation	5.0	Normal	fixed			Ready for checkin	1	0	0	0	0	0
