SW ENGINEERING/SqlAlchemy
[SQLAlchemy] flush vs commit
What's the difference between flush() and commit()? - flush : The session object registers transaction operations with session.add(), but doesn't yet communicate them to the database until session.flush() is called. session.flush() communicates a series of operations to the database (insert, update, delete). The database maintains them as pending operations in a transaction. The changes aren't p..
2022. 3. 8. 13:32
최근댓글