FAQ Database Discussion Community


What do I set MONGO_OPLOG_URL to in Meteor Up?

deployment,meteor,compose,meteor-up
I have created a database and a user with oplog access in Compose.io. The URI I get looks like this: mongodb://<user>:<password>@lamppost.11.mongolayer.com:10022,lamppost.10.mongolayer.com:10024/cardmaker?replicaSet=set-<bunchOfDigits> Knowing this, what do I set as MONGO_URL and MONGO_OPLOG_URL in mup.json? There is literally no documentation on this. :(...

Node.js Date Objects stored in MongoDB as ā€œ1970-01-01T00:00:00.001Zā€

node.js,mongodb,datetime,mongoose,compose
I have a Node.js application and I'm using Mongoose to interface with MongoDB on Compose.io. Here's some code that should store the current date and time in my database: signup.Volunteer.find({_id : uniqueid.toObjectId()}, function(err, doc){ var volunteer = doc[0]; var date = new Date(); console.log(date.toString()); //volunteer.time_out is an array //defined in...

Does Mgo cache connection strings?

mongodb,go,mgo,compose
My Go application has been connecting to a MongoDB (hosted on Compose.io) using MGO with no issues. Today I decided to delete this database and add a different one (again using Compose). I updated the connection string. So I connect using: db, err := mgo.Dial("mongodb://<username>:<password>@dogen.mongohq.com:10048/db-name") with the username and password...

Check queued reads/writes for MongoDB

node.js,mongodb,heroku,compose
I feel like this question would have been asked before, but I can't find one. Pardon me if this is a repeat. I'm building a service on Node.js hosted in Heroku and using MongoDB hosted by Compose. Under heavy load, the latency is most likely to come from the database,...