2010/1/11 Waldecir Santos <[email protected]>:
> Maybe sqlalchemy cache ? btw this is not a wrong behavior, check the time of 
> the second query, if it is faster than  the first query, then it is the cache.

I don't think SQLAlchemy has caching. Maybe you should make sure your
session has been closed after the request returned. Otherwise all your
objects might keep living in the UOW of SA.

in lib/base.py make sure you have something like:

    def __call__(self, environ, start_response):
        try:
            return WSGIController.__call__(self, environ, start_response)
        finally:
            meta.Session.remove()

(or "meta.Session.close()")
-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
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