On Jun 15, 11:11 am, Miles wrote:
> Connections aren't thread safe - you have to ensure every thread gets
> its own connection. You can create a new connection every request or
> use a thread-local to cache connections.
The latter is what Django does, although it's very easy
> Connections aren't thread safe - you have to ensure every thread gets
> its own connection. You can create a new connection every request or
> use a thread-local to cache connections.
>
Ok, thanks for the explanation/confirmation
James
--~--~-~--~~~---~--~~
On Jun 15, 6:18 pm, James Gregory wrote:
> I am creating a web app with Django. I use a local MySQL database to
> store users etc, but also connect to a remote Oracle database to pull
> in some information to display.
>
> Due to Django's lack of multiple database support I
I am creating a web app with Django. I use a local MySQL database to
store users etc, but also connect to a remote Oracle database to pull
in some information to display.
Due to Django's lack of multiple database support I have written my
own very smalI Oracle wrapper, using cx_Oracle. In an
4 matches
Mail list logo