[sqlalchemy] Dogpile caching: can't pickle function objects

2013-07-11 Thread Amir Elaguizy
If I do a query like this: return PcpPostModel.query.filter_by(id=post_id).options( FromCache(default) ) and then later I do another query like this: PcpPostModel.query.options(FromCache(default)).all() Any models that were returned by the first query are

Re: [sqlalchemy] Dogpile caching: can't pickle function objects

2013-07-11 Thread Michael Bayer
On Jul 11, 2013, at 11:43 AM, Amir Elaguizy aelag...@gmail.com wrote: If I do a query like this: return PcpPostModel.query.filter_by(id=post_id).options( FromCache(default) ) and then later I do another query like this:

Re: [sqlalchemy] Dogpile caching: can't pickle function objects

2013-07-11 Thread Amir Elaguizy
Michael, Thanks for the reply. I understand what you're saying and can go search for that. I wonder if you could take a look at my question about join order determinism in polymorphic queries? Thanks, Amir On Thursday, July 11, 2013 11:09:50 AM UTC-7, Michael Bayer wrote: On Jul 11, 2013,