I'm using a MongoLab DB for a rails project, and using Mongo 1.8.3, and MongoMapper 11.2, and effectivelyI'm sharing that database between 2 different apps.
1. I get the value of Document by looking at it's page on App 1.
2. On App 2, I edit said document, and update.
3. App 1 does not see the change, no matter how many times I make requests for it.
Further, inside App1 I also issue a @doc.reload call, and still the same. The Mongo Drvier logger "seems" to
be logging reads from the DB for the first call and the second call.
I assume the IdentityMap is getting cleared between requests, and I've also explicitly called that before retrieving
the document.
I'm at a loss. The only way App 1 gets the updated document is when I stop and restart the server.
This happens in the Rails console as well, even after a global reload! In order to see the change, I must stop and restart the console.
Am I missing some configuration parameter? Or is the it the MongoLab DB that is holding onto what should be an outdated cache for a particular connection?
Thanks for any ideas?
Cheers,
-Polar