[sqlalchemy] Automatically applying FromCache for specific mapped class

2014-01-25 Thread Jonathan Rogers
I am experimenting with the caching example and have it working as described. I have a number of mapped classes for tables which are static lookup tables. The rows in the tables will not change during the lifetime of application process. So, I would like to automatically apply a FromCache option

Re: [sqlalchemy] Automatically applying FromCache for specific mapped class

2014-01-25 Thread Jonathan Rogers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Bayer wrote: On Jan 25, 2014, at 11:48 AM, Jonathan Rogers jonathanrrog...@gmail.com wrote: I am experimenting with the caching example and have it working as described. I have a number of mapped classes for tables which are static

Re: [sqlalchemy] Versioned object example

2014-01-25 Thread Simon King
Oh, yes, of course, I forgot that foreign keys aren’t immediately updated when you manipulate a relationship. Your suggested change sounds exactly right. Thanks again, Simon On 25 Jan 2014, at 02:30, Michael Bayer mike...@zzzcomputing.com wrote: well since create_version() is called