Reputation: 1899
Application A opens mongodb and reads a document. The document now exists in Application A's memory. Application B, perhaps running on a different box (but in this case as a mock running in a different process on the same box) inserts data into the document. When does Application A see application B's change?
Mongo is configured to use safe writes and a journal. There is only the one shard.
Mongo updates are written immediately to the journal, but updates to the data file can take 60 seconds (syncdelay=60). How is this supposed to work when two different applications share the same instance?
Upvotes: 0
Views: 1493
Reputation: 2943
When A queries for the document again.
You should take a look at the WriteConcern you are using.
Upvotes: 1