Are there any side effects from calling SQLAlchemy flush() within code?
问题 A bit of background: I am using pyramid framework with SQLAlchemy . My db session is handled by pyramid_tm and ZTE DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension())) I have a very complicated database design with lots of model classes, foreign keys, and complex relationships between my models. So while doing some very complicated logic on my Models and deleting, updating , inserting, and moving around objects from relationships in different models I used to get