On Oct 15, 7:40 am, "Tomasz Nazar" <[EMAIL PROTECTED]> wrote:
>
> Also code would be a lot simpler:
> confs = dbsession().query(Conference).filter(XXX).all()
> %for conf in confs:
>        ${conf} ${conf.author} ${conf.author.phone} .... etc...
>
> It's that simple with cache being used.
> Without that... code is more complicated.

Well I think the gains with SQL level caching become problematic down
the road in lots of cases, but try out that example I gave you.  It'll
give you exactly that behavior.   It can be expanded in many ways,
such as to produce "regioning" behavior, i.e.

sess.query(Conference).cache("somekey",
region="short_term").filter(XXX).all()

where "short_term" points to some regioning object with timeout
params, etc.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to