[sqlalchemy] Using dogpile.cache example with SQLAlchemy

2013-05-27 Thread John Anderson
I'm trying to adopt the examples from: https://bitbucket.org/zzzeek/sqlalchemy/src/e2b8c893ca98/examples/dogpile_caching/ to work with my code base and so I've copy and pasted the caching_query.py into my project and started doing queries like this: DBSession = scoped_session(

Re: [sqlalchemy] Using dogpile.cache example with SQLAlchemy

2013-05-27 Thread Michael Bayer
I use this recipe extensively (and have for several years), can you provide a test case that generates that warning? On May 27, 2013, at 9:01 PM, John Anderson son...@gmail.com wrote: I'm trying to adopt the examples from:

Re: [sqlalchemy] Using dogpile.cache example with SQLAlchemy

2013-05-27 Thread John Anderson
Sorry, re-sending, I accidentally replied directly to Mike: Here is a small gist that shows how to reproduce it: https://gist.github.com/sontek/5660624 If you use that along with the caching query stuff in the examples and run it you should get the following error: SAWarning: Column

Re: [sqlalchemy] Using dogpile.cache example with SQLAlchemy

2013-05-27 Thread Michael Bayer
ah right, the statement caching code has been updated recently when I transitioned from dogpile, it just needs this: diff --git a/examples/dogpile_caching/caching_query.py b/examples/dogpile_caching/caching_query.py index f4724fb..fb019cc 100644 --- a/examples/dogpile_caching/caching_query.py