I saw the following code in this commit for MongoDB’s Java Connection driver, and it appears at first to be a joke of some sort. What does the following...
Is it possible for the same exact Mongo ObjectId to be generated for a document in two different collections? I realize that it’s definitely very unlikely, but is it...
I find no doc for the sort modifier. The only insight is in the unit tests: spec.lib.query.js#L12 writer.limit(5).sort(['test', 1]).group('name') But it doesn’t work for me: Post.find().sort(...
It’s widely mentioned that Redis is “Blazing Fast” and mongoDB is fast too. But, I’m having trouble finding actual numbers comparing the results of the two. Given similar configurations,...
I am coming from riak and redis where I never had an issue with this services starting, or to interact. This is a pervasive problem with mongo and am...
I’m creating a sort of background job queue system with MongoDB as the data store. How can I “listen” for inserts to a MongoDB collection before spawning workers to...
How can I set up MongoDB so it can run as a Windows service? 29 Answers 29
I have a Mongo document which holds an array of elements. I’d like to reset the .handled attribute of all objects in the array where .profile = XX. The...
Is there a function to turn a string into an objectId in node using mongoose? The schema specifies that something is an ObjectId, but when it is saved from...
I wanted to use the mongodb database, but I noticed that there are two different databases with either their own website and installation methods: mongodb and mongoose. So I...