3 ms·
I REALLY want to try mongo for a side project I am building, however the single server durability is an issue. My data could easily fit in mysql/postgres howeve
by djb_hackernews 15y ago
I REALLY want to try mongo for a side project I am building, however the single server durability is an issue. My data could easily fit in mysql/postgres however I am storing data that fits better in a document store. I am inclined to just use postgres for now because it's sort of silly to set up/pay for multiple servers for such a small project.
UPDATE: Apparently my information is out of date. Hopefully my confusion (and the answers below) helps someone else. Thanks.
- patrickaljord 15y agoMongoDB has had single server durability since 1.8. It's now on 2.0 and enabled by default.
- rick446 15y agoMongoDB has single server durability since 1.8 with the journal. If you put the journal on an SSD, you can even get it almost for free performance-wise.
- rubyrescue 15y agoYou could say that about any database, though - nothing special about mongo's journaling that makes it "for free" wit h an SSD.
- rick446 15y agoYeah, I guess I should make the point that if you don't put the journal on SSD (and you only need a few gigs of SSD to journal terabytes of spinning disk storage), you will see significant slowdown.
- Ecio78 15y agoafaik single server durability was a problem in the past. Since 1.8 they've introduced journaling and it's now enabled by default in 2.0 More info here: http://blog.mongodb.org/post/381927266/what-about-durability http://blog.mongodb.org/post/381927266/what-about-durability and here: http://www.mongodb.org/display/DOCS/Durability+and+Repair http://www.mongodb.org/display/DOCS/Durability+and+Repair