Menu

#7 Option for current reads within a transaction

open
nobody
None
5
2009-08-30
2009-08-30
No

Unlike with most databases, queries and gets inside a datastore transaction do not see the results of previous writes inside that transaction. Specifically, if an entity is modified or deleted within a transaction, a query or get will return the original version of the entity as of the beginning of the transaction, or nothing if the entity did not exist then.

In order to preserve compatibility with the Google Dataore COntrail will behave this way by default.
However, there should be an option that enables Contrail to behave like most databases (I think the way most developers would prefer) and include an up-to-date view of the data within a transaction.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB