Re: Problem with DBPooling? Was Re: [Webware-devel] Persisting an object between requests?

2003-01-15 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 15 January 2003 05:25 pm, Luke Holden wrote: > After a while I eventually end up with: > OperationalError: (1040, 'Too many connections') > > Which tells me that the connections are not being recycled? set: 'SQLConnectionPoolSize': 20, i

Problem with DBPooling? Was Re: [Webware-devel] Persisting an object between requests?

2003-01-15 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 15 January 2003 04:56 pm, you wrote: > Module globals would be the way to go. Okay... my ObjectStore is now a global of the utils class so it is only being created once. class ForumUtils: store = None def __init__(sel

Re: [Webware-devel] Persisting an object between requests?

2003-01-15 Thread Ian Bicking
Module globals would be the way to go. On Wed, 2003-01-15 at 18:54, Luke Holden wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Okay... I have a couple MiddleKit models and I assume the ObjectStore > should only be created once and reused for every request right? > > What would

[Webware-devel] Persisting an object between requests?

2003-01-15 Thread Luke Holden
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay... I have a couple MiddleKit models and I assume the ObjectStore should only be created once and reused for every request right? What would be the proper way to persist an object accross requests? (So any requests within the same context g