I've replied to this but sent both to SQLAlchemy list and here, seems it
never got here.
The problem was in the debug toolbar. It never occurred to me that using
a bootstrapped Pyramid from a command line script would use debug
toolbar (because I used development.ini which had it on), and de
/facepalm
Okay, debugtoolbar does that. If I disable it from config, everything
works fine. My fault. Been hunting for this memory leak for two days
straight and it never occurred to me that even the command line
bootstrapped Pyramid, when using development.ini, will have the debug
toolbar
Hi all.
I have a Pyramid bootstrapped script that has to process thousands of
rows (on relatively complex model relationships) per call from command
line. Pyramid is bootstrapped to reuse models and helper functions from
the main web application this script is part of.
The problem I'm havin