Re: Shared connection stuff?

2009-05-28 Thread Kieran
I just made a post to this thread that seems to have disappeared. Let me quickly reiterate it now -- if it ends up doubling up, apologies. I have a process that runs outside of the webserver to import data on the filesystem into the database. I already had a system in place to track

Re: Shared connection stuff?

2009-05-28 Thread Kieran
Hi. I have a web application that requires files on disk to be analyzed and imported into the database continually. I spent the last couple days parallelizing the import routine. At first, I'd periodically lose my connection to MySQL: Traceback (most recent call last): File

Re: Shared connection stuff?

2009-05-23 Thread m...@nysv.org
On May 23, 11:57 am, "m...@nysv.org" wrote: > Maybe I'll still try Process objects instead of processing.Pool.imap() > to be safe.. I never did, as it seems the connection is very global. I also made a finding that the connection live in the base model, so although

Re: Shared connection stuff?

2009-05-23 Thread m...@nysv.org
On May 23, 1:59 am, "R. Gorman" wrote: > You can control database connections and transactions using > transaction management: > > http://docs.djangoproject.com/en/dev/topics/db/transactions/ This isn't about transactions, it's about the how the connection itself can not

Re: Shared connection stuff?

2009-05-23 Thread m...@nysv.org
On May 22, 6:15 pm, Karen Tracey wrote: > On Fri, May 22, 2009 at 7:41 AM, m...@nysv.org > wrote: > > FWIW, the only other time I recall something like this coming up is here: >

Re: Shared connection stuff?

2009-05-22 Thread R. Gorman
You can control database connections and transactions using transaction management: http://docs.djangoproject.com/en/dev/topics/db/transactions/ On May 22, 7:41 am, "m...@nysv.org" wrote: > Hi! > > I'm using python-processing to run things in parallell based > on

Re: Shared connection stuff?

2009-05-22 Thread Karen Tracey
On Fri, May 22, 2009 at 7:41 AM, m...@nysv.org wrote: > > Hi! > > I'm using python-processing to run things in parallell based > on data in a Django-powered database. > > I'm also seeing all sorts of funky tracebacks: > Traceback (most recent call last): > File

Shared connection stuff?

2009-05-22 Thread m...@nysv.org
Hi! I'm using python-processing to run things in parallell based on data in a Django-powered database. I'm also seeing all sorts of funky tracebacks: Traceback (most recent call last): File "utils/X.py", line X, in XX XX = X(, X=X, =) File