[sqlalchemy] Debugging memory leaks

2022-01-05 Thread Anupama Goparaju
Hi, We are trying to debug memory leaks in our flask app that is using SQLAlchemy version 1.3.16. When i was using tracemalloc python library and comparing the memory snapshots, I found the below lines repetitively appearing in the snapshot differences: Could you please help us in providing us

Re: [sqlalchemy] Turn off connections invalidation functionality

2022-01-05 Thread Anupama Goparaju
I haven't read the response before and tried to skip the lib logic by overriding the function below in my child call extending the NullPool to do nothing. Is this safe to do? def _invalidate(self, connection, exception=None, _checkin=True): pass On Wednesday, January 5, 2022 at 4:33:01

Re: [sqlalchemy] Turn off connections invalidation functionality

2022-01-05 Thread Anupama Goparaju
Great, thanks for the info. On Friday, November 26, 2021 at 9:30:02 AM UTC-8 Mike Bayer wrote: > I've spent some time thinking about what might be being asked here.the > only thing I can think of is that when a particular database connection is > found to be in what we call a "disconnect"