﻿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
1237	[patch]thread safety connection pool for all backend	junzhang.jn@…	Adrian Holovaty	"Django uses the same connection for all threads. It breaks any database when using transaction or in multithread web server.
this patch is implemented to avoid it.

like ticket [463] but for all.

- use AutoReleaseCursor return connection object to pool when cursor deleted.

- use connections dict protect threaded active connection.

- db backend must implement a get_check_sql function to provide a sql which can check a connection's health.

ado_mssql:
{{{
def get_check_sql():
    return ""select top 1 1 from sysfiles""
}}}

oracle:
{{{
def get_check_sql():
    return ""select 1 from dual"";
}}}

other.... 




sorry for my very very poor english."	enhancement	closed	Database layer (models, ORM)		normal	duplicate	connection pool db 		Unreviewed	1	0	0	0	0	0
