On Thu, Feb 11, 2010 at 4:06 PM, Anand Chitipothu <[email protected]>wrote:

> > the psycopg2 author says that when using multiprocessing, connections
> should
> > not be shared
> >
> > http://lists.initd.org/pipermail/psycopg/2010-February/006747.html
> >
> > is there any option so that i can force web.py to create a new connection
> > for every db query/calls?
> Try creating the database with pooling=False option.
>

that does not help, this is how i create the database, and i have always
disabled pooling.

DB_CONFIG = dict(dbn='postgres', user='YY', pw='ZZ', db='XX')
db = web.database(**TWIT_DB_CONFIG)
db.printing=False
db.supports_multiple_insert=True
db.has_pooling=False


is there anything else i can do?
thanks

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to