python - On the google app engine, why do updates not reflect in a transaction? -
I store a group of entities in the Google App Engine Data Store with the same ancestors / parent / unit group . This is because institutions can be updated in a nuclear datastore transaction.
The problem is as follows:
- I start the DB transaction
- I update entityX by setting entityX.flag = True
- I save the unit SX
- I query for the unit where the flag == is true but, here's the problem. This query does not return any results. This unit should have come back, but it was not.
When I withdraw the transaction, my code works perfectly, so it should be a transaction which should be a strange behavior.
Should the institutions in the entity group update somewhere else in the same transaction?
PS: I am using Python and GAE tells me that I can not use nested transactions: (
App engine transactions are designed in that manner, that means a snapshot is seen as the beginning of the transaction read within the transaction, so in the transaction first The result of writing does not appear:
Comments
Post a Comment