From: Ryan H. <rh...@sh...> - 2004-11-30 20:17:39
|
* Leif K-Brooks <eu...@ec...> [2004-11-30 12:37]: > Ryan Harper wrote: > > >It would be nice to be able to toggle caching > > > You can, set the _cacheValues attribute to False. See > <URL:http://sqlobject.org/docs/SQLObject.html#sqlobject-class-specifying-your-class>. from main.py: # The _cacheValues attribute controls if you cache # values fetched from the database. We make sure # it's set (default 1). This controls whether SQLObject caches results, not whether it will cache object creation. A subtle distinction that isnt indicated in the documentation. In any case, I did set this value and observed no reduction in memory footprint. If it was unclear before, I would like to be able to toggle the following: 1. caching of newly created objects (inserts) 2. Avoid issuing the subseqent select to initialize newly created objects (_init() calls selectOne()) Ryan Harper |