Re: [sqlalchemy] Re: Tracking query performance per Session

2016-06-27 Thread Martijn van Oosterhout
Ah, thanks for the tip, the info fields work nicely as well. Have a nice day, On Monday, June 27, 2016 at 4:09:54 PM UTC+2, Mike Bayer wrote: > > > Hi Martijn - > > Sorry I missed this post.Your solution is pretty good. For the > setattr() stuff, both Connection and Session have an .info

Re: [sqlalchemy] Re: Tracking query performance per Session

2016-06-27 Thread Mike Bayer
Hi Martijn - Sorry I missed this post.Your solution is pretty good. For the setattr() stuff, both Connection and Session have an .info attribute which is a dictionary you can use for memoizations. On 06/27/2016 03:02 AM, Martijn van Oosterhout wrote: On Tuesday, June 21, 2016 at

[sqlalchemy] Re: Tracking query performance per Session

2016-06-27 Thread Martijn van Oosterhout
On Tuesday, June 21, 2016 at 11:25:36 PM UTC+2, Martijn van Oosterhout wrote: > > Hi, > > In an effort to find the bottlenecks in our system we'd like to collect > statistics about which queries take a long time, or return a lot of rows, > or paths which are triggering lots of queries. > >