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:

  1. I start the DB transaction
  2. I update entityX by setting entityX.flag = True
  3. I save the unit SX
  4. 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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -