by mattkrea · 12y ago · 0 comments
If you are using Node you should use Mongoose and then you may see why some people love Mongo. Complex queries and joins (not technically called joins I guess) are incredibly easy to accomplish with that module[1]. Personally, I have migrated back to MySQL since I was unable to convince my colleagues that Mongo would last long-term and frankly I am not 100% confident either for the kind of business applications that we need[2].
[1]: http://mongoosejs.com/docs/populate.html
[2]: payment processing industry handling billions of records
My experience with ORMs has not been pleasant either but Mongoose was very, very nice.
Essentially you end up with an a lot of linking by item IDs as you would with a traditional relational database but the "eventual consistency" was where I thought there may be issues in the future.
I personally never saw problems stemming from this but my projects using MongoDB never really even hit a million objects in a single collection (not 100% sure on that). Again, at scale is where I'd lose confidence.
This is entirely speculation but when it comes to critical infrastructure I can't leave anything to chance.