Re: [sqlalchemy] Merge(load=False) woes

2013-12-09 Thread Jonathan Rogers
On Wednesday, August 25, 2010 11:02:19 AM UTC-4, Michael Bayer wrote: On Aug 25, 2010, at 10:47 AM, Michael Bayer wrote: On Aug 25, 2010, at 9:37 AM, Nikolaj wrote: Hello, I'm struggling to use the Beaker caching example in my project. Accessing any attribute on an instance

Re: [sqlalchemy] Merge(load=False) woes

2013-12-09 Thread Michael Bayer
On Dec 9, 2013, at 11:20 PM, Jonathan Rogers jonathanrrog...@gmail.com wrote: I want to cache mapped objects from rows which will not change during the process lifetime of a web application, so I used the memory backend. Based on the comment in the example from SQLAlchemy 0.7.9, I have

Re: [sqlalchemy] Merge(load=False) woes

2013-12-09 Thread Jonathan Rogers
Michael Bayer wrote: On Dec 9, 2013, at 11:20 PM, Jonathan Rogers jonathanrrog...@gmail.com mailto:jonathanrrog...@gmail.com wrote: I want to cache mapped objects from rows which will not change during the process lifetime of a web application, so I used the memory backend. Based on the

Re: [sqlalchemy] Merge(load=False) woes

2010-08-25 Thread Michael Bayer
On Aug 25, 2010, at 9:37 AM, Nikolaj wrote: Hello, I'm struggling to use the Beaker caching example in my project. Accessing any attribute on an instance from cache triggers a load from database of the instance - even trying to read the primary key! that means the instances that you're

Re: [sqlalchemy] Merge(load=False) woes

2010-08-25 Thread Michael Bayer
On Aug 25, 2010, at 10:47 AM, Michael Bayer wrote: On Aug 25, 2010, at 9:37 AM, Nikolaj wrote: Hello, I'm struggling to use the Beaker caching example in my project. Accessing any attribute on an instance from cache triggers a load from database of the instance - even trying to read