by dstorrs · 15y ago · 0 comments
I want my data store to be durable and unsurprising -- barring a hardware failure or such, if I submit data it should either tell me that it failed to commit or it should be stored durably and without surprises (e.g., it should not truncate a long string to fit).
I've read some of the Mongo docco, and it's pretty exciting, but the lack of ACID -- primarily the Durability -- has kept me from really using it.
With a WAL journal, it sounds like maybe the durability issue is fixed. Is it? Could I use Mongo with relatively out-of-the-box settings plus --journal and count on a level of durability equivalent to a traditional RDBMS?
For example in the PHP driver, calling insert with the safe option. http://www.php.net/manual/en/mongocollection.insert.php
"If safe is an integer, will replicate the insert to that many machines before returning success (or throw an exception if the replication times out, see wtimeout)."
You can then immediately called http://www.php.net/manual/en/mongodb.lasterror.php to confirm the last operation didn't error.
The mailing list is a great place for this type of question, too (http://groups.google.com/group/mongodb-user).