Re: [SQLObject] Using a persistant connection
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2003-05-05 17:59:32
|
On Thu, 2003-05-01 at 10:44, Nick wrote: > If I want to keep a persistant db connection but not cache, I can see > how I can do this by saying: > > class._connection.cache = CacheSet() > > but I'm not sure if mucking with the internals like that is the right > way to go. Is there some other way to handle this that I'm not seeing? > If not, should there be? Caches should be stored entirely per-connection, including per-transaction (which works by using a separate connection). This happens in SQLObject.py:315 -- see if that's what you're thinking of. Ian |