python - Will SQLAlchemy update the content of objects in the middle of a session? -


In SQLite docs, it says:

"When using a session, this meditation It is important to keep in mind that objects related to objects are proxy objects for transactions conducted by the session - there are many types of incidents, which can cause the object to reuse the database to keep synchronization. Separating objects from the session, and using them To continue, however, there are warnings in this exercise. This means that generally, you can re-associate allies again and another session when you want to work with them again so that they If you are in the middle of a session in which I read some items, some manipulations and more questions, you can resume your normal work of representing the database status. "[

And will be updated to protect before saving some objects, so there is no risk that changes in DBS by other users when I do I object to what you have been working with them unexpectedly?

In other words, what are the "diversity of events" mentioned above?

Transactions Isolation Maximum Level? (I am doing the postal using flask-SQLLame and flask-rifflal using SQL, if any of them.)

No, SQLAlchemy does not monitor the database for the change of your object or whenever it seems. I can think that this will be a very expensive operation. "Diversity of Events" shows more of the internal state of SQLite I am not familiar with all "events" but for example when objects are marked as expired, SQLAlchemy will automatically update them from the database Reloading is such a case calling session.commit () and then re-entering the property of any object.

And here:

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -