Re: Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread Ian Kelly
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

Re: Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread James Gregory
> 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 --~--~-~--~~~---~--~~

Re: Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread Miles
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

Django + Apache + mod_wsgi + Oracle -> threading problems?

2009-06-15 Thread James Gregory
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