Re: [sqlalchemy] Triggers broken after move from PyPy to CPython

2020-08-13 Thread Mike Bayer
Would be very strange but the main difference between pypy and cpython is the garbage collection in cPython is usually immediate for an object withotu reference cycles whereas in Pypy it's not immediate. If this example were in a test suite where the "B" table were created in a transient way s

[sqlalchemy] Triggers broken after move from PyPy to CPython

2020-08-13 Thread Ankit Soni
We are attempting to move to CPython from PyPy (both version 2.7), but I'm seeing some baffling errors in the process. We are using SQLAlchemy 1.3.11, Flask-SqlAlchemy 2.4.11, psyocpg2cffi, postgres in our application. There is an "A" model with a post create hook like: event.listen(A.__ta

[sqlalchemy] Flask SQlAlchemy BaseQuery Paginate not working correctly

2020-08-13 Thread Prerna Pandit
Hello, I've been struggling with this issue for the past couple of days and would really, truly appreciate if someone could please give me pointers or direction as to what I might be missing. Here are my models; class Aggregate(db.Model): id = db.Column(UUID(as_uuid=True), primary_key=True