Re: [sqlalchemy] Dogpile.cache w/ SQLAlchemy

2012-09-26 Thread David McKeone
This example has worked really well so far, but I thought I'd mention that I ran into few small things and made some changes. 1) This is was minor. I wanted to be able to use the cache_regions on multiple databases from the same program so I made the CachingQuery class take a parameter with

Re: [sqlalchemy] Dogpile.cache w/ SQLAlchemy

2012-09-26 Thread Michael Bayer
On Sep 26, 2012, at 11:31 AM, David McKeone wrote: This example has worked really well so far, but I thought I'd mention that I ran into few small things and made some changes. 1) This is was minor. I wanted to be able to use the cache_regions on multiple databases from the same program

Re: [sqlalchemy] Dogpile.cache w/ SQLAlchemy

2012-09-26 Thread David McKeone
Fair enough about the example stuff; I kind of figured, but thought I'd just share my experience. It's such a fine-line between authors getting a bead on real-world usage vs. hearing the same question over and over again. Previously, I had it just using the binds that were in the Query, but we

[sqlalchemy] Dogpile.cache w/ SQLAlchemy

2012-09-24 Thread David McKeone
As per this comment: http://techspot.zzzeek.org/2012/04/19/using-beaker-for-caching-why-you-ll-want-to-switch-to-dogpile.cache/#comment-503780670 Has any work been put into an example for using Dogpile.cache with SQLAlchemy? I'm about to embark on implementing caching and I don't want to

Re: [sqlalchemy] Dogpile.cache w/ SQLAlchemy

2012-09-24 Thread Michael Bayer
yes, the example in 0.8 should be changed to this, but I haven't done it yet. dogpile's usage is similar to Beaker as far as the general calling pattern. A tutorial format of the example using dogpile is attached. On Sep 24, 2012, at 7:15 AM, David McKeone wrote: As per this comment:

Re: [sqlalchemy] Dogpile.cache w/ SQLAlchemy

2012-09-24 Thread David McKeone
Great, thanks Mike! On Monday, September 24, 2012 4:15:29 PM UTC+2, Michael Bayer wrote: yes, the example in 0.8 should be changed to this, but I haven't done it yet. dogpile's usage is similar to Beaker as far as the general calling pattern. A tutorial format of the example using