4 ms·
From the article: A lot of NoSQL solutions are about solving specific problems. MongoDB is a general solution which can (and probably should) be used in 90% of
by nkh 15y ago
From the article:
A lot of NoSQL solutions are about solving specific problems. MongoDB is a general solution which can (and probably should) be used in 90% of the cases that you currently use an RDBMS.
As I use don't use any NoSQL solutions today, can someone list out a few of these cases where I am using an RDBMS and I should be using MongoDB?
- latch 15y agoWhen you want to do many small real time operations against your data. The model fits well with most web sites (the unit of work for a given request tends to be quite small). Loggin also comes to mind as does some basic geospatial work. I think for most cases it does what a RDBMS can do but with less friction (you'll still use an ORM/ActiveRecord, but it'll be a much more lightweight). Why don't you check out mongly.com/tutorial/index and get a quick feel for it?
- nkh 15y agoThat makes sense, but it is certainly not 90% of what I use an RDBMS for as the author stated. Especially if most of the things I do are not real time web. I will take a look at the link above, as I am curious about it. But I am still struggling for use cases. By the way, thank you for your comment. I up-voted it.
- mtogo 15y agoI'm wondering about this too. For almost everything i work on, the data being in the correct format, written to disk, and stored reliably is more important than the speed or other advantages of Mongo.
- jasonmccay 15y agoI have a hard time understanding responses like this and, in the end, they make me think that people a) really don't understand some of these new data technologies and b) are just as much on the anti-bandwagon as those that sit on the latter. For people using MongoDB daily, their data is in the correct format, it is persisted to disk, it is stored reliably and it is fast. On top of that, it gives them flexibility as their web app changes and new features and data structures are added, it is easily viewed and manipulated in JSON-format, and if and when the day comes that they need serious scaling, it helps there as well. Also, in the world of EC2, it is straight-forward to set up replica sets to offer redundancy. All these conversations sound eerily familiar to the Java guys bashing Ruby and Ruby on Rails about five years ago. If you want to stick with what you have, then no worries. I just think people should be excited that over the last couple of years, the "golden hammer" approach to storing data has finally been overtaken and developers have a choice about what technology best solves their data problem.
- StavrosK 15y agoI have first-hand experience with MongoDB silently eating my data (yes, I was using the 64-bit version) which I realized a week earlier when I noticed half the dataset missing. The reputation (specifically of Mongo) is probably not undeserved.
- jasonmccay 15y agoI am not knowledgeable of your situation, but I am curious about your set up, the intentions you had when you were storing things and other factors in MongoDB not storing your data. Also, I am curious how long ago this was...what version of MongoDB you were using and if you were checking getLastError after the write (assuming you wanted that behavior). I am not denying your experience, just curious about the whole picture.
- StavrosK 15y agoI have a writeup here: http://www.korokithakis.net/posts/using-mongodb-for-great-science-part-2/ http://www.korokithakis.net/posts/using-mongodb-for-great-sc...
- alnayyir 15y agoGiven that you didn't know better than to not use 1.3.* initially I find it hard to take your continued propagation of your posts on MongoDB seriously.
- StavrosK 15y agoYep, that pretty much invalidates the fact that the stable version of Mongo silently corrupted data. If only we could make database software that didn't hold grudges!
- ebiester 15y agoIf it's common knowledge not to use 1.3.*, why isn't that anywhere on the first page of google when searching for mongodb or mongodb 1.3? Just curious what the magic incantation is for this information.
- gaius 15y agoBecause it's "web scale".