Questions tagged [mlab]

MongoLab (Rebranded as mLab) is a fully-managed MongoDB Database-as-a-Service (DBaaS) platform that automates the operational aspects of running MongoDB in the cloud.

MongoLab is a fully-managed cloud database service featuring highly-available MongoDB databases, automated backups, web-based tools, 24/7 monitoring, and expert support. By hosting MongoDB on MongoLab’s Database-as-a-Service (DBaaS) platform, developers and IT professionals are free to focus their attention on product development instead of operations.

MongoLab runs on all the major cloud platforms, including Amazon, Joyent, Rackspace and Windows Azure, and has partnered with all of the major Platform-as-a-Service (PaaS) providers to enable seamless integration with the application tier.

Headquartered in San Francisco, MongoLab is backed by premier venture and angel investors including Foundry Group, Baseline Ventures, GRP Partners, Freestyle Capital, and David Cohen of TechStars.

Learn more at https://mlab.com/

852 questions
7
votes
1 answer

How do I setup MongoDB database on Heroku with MongoLab?

I'm using Express.js and MongoLab and I followed the Heroku setup to get MongoDB working in production throwing this code in my app.js. //Mongo on Heroku Setup var mongo = require('mongodb'); var mongoUri = process.env.MONGOLAB_URI || …
Jryl
  • 1,156
  • 4
  • 11
  • 20
7
votes
1 answer

Is there ReadOnly REST API key to a MongoLab database, or is it always ReadWrite

In MongoLab you generate an API key and then anyone can access your database using REST API. Usual case is to use the REST api directly from Ajax clients. But this gives anyone complete write access to your database, which is security hole. Is there…
tzador
  • 2,535
  • 4
  • 31
  • 37
6
votes
3 answers

MongoEngine: database names cannot contain the character '.'

I am trying to insert document using mongoengine in my python script but it raises this exception (, InvalidName("database names cannot contain the character '.'",),
Mustafa Khalid
  • 161
  • 1
  • 1
  • 8
6
votes
1 answer

Mongoose compound indexes not being created (Too long)

I'm having some issues creating multiple compound indexes on one of my schemas in MongoDB. When using MongoLab, I know some indexes are not created when they are too long, due to a naming issue. So I suspect this might be the reason why some are not…
woutr_be
  • 9,532
  • 24
  • 79
  • 129
6
votes
1 answer

MongoDB index not helping query with multikey index

I have a collection of documents with a multikey index defined. However, the performance of the query is pretty poor for just 43K documents. Is ~215ms for this query considered poor? Did I define the index correctly if nscanned is 43902 (which…
Jason
  • 4,232
  • 3
  • 23
  • 31
5
votes
2 answers

What is the syntax for Dates in MongoDB running on MongoLab?

Instead of ObjectId('82he921he982he82') its "_id":{"$oid":"82he921he982he82"} for object Ids, but I have no idea how to create a date value in a document on MongoLab :s
SomethingOn
  • 9,813
  • 17
  • 68
  • 107
5
votes
1 answer

MongoDB query returns null even though it is available in the collection after migrating from mlab to mongoDB atlas

I am migrating a database from Mlab to MongoDB Atlas. We had to upgrade the npm version of mongodb to 3.4.1 as the MongoDB atlas database version is 4.2.5. The connection function has been updated as said in this answer. But after upgrading the npm…
5
votes
3 answers

Connect to Mlab with mongoose

Hi i'm trying to make a simple connection mongoose.connect('mongodb://JFalcon:john2522@ds119476.mlab.com:19476/hidonshabat', {useMongoClient: true}, function(err){ if(err) { console.log('Some problem with the connection ' +err); }…
John Yaghobieh
  • 131
  • 2
  • 12
5
votes
1 answer

A pipeline stage specification object must contain exactly one field with php mongo aggregate

I am trying to use aggregate with with project, match and sort but i am getting an exception (MongoResultException to be exact) saying exception: A pipeline stage specification object must contain exactly one field. It works fine when I did not use…
Asif Alamgir
  • 1,454
  • 1
  • 16
  • 41
5
votes
4 answers

MongoDB from MLab : find by ID not working

I have been trying so hard to filter my records by ID from MongoDB without success. The problem is with $oid On MLAB my records look like : { "_id": { "$oid": "57603891dcba0f7813102b3f" }, "age": 10, "name": "john", …
soulemane moumie
  • 1,005
  • 1
  • 14
  • 26
5
votes
2 answers

How to seed data for a node+mongo app deployed to Heroku?

I have a node express app with MongoDB as database. I want to have a seed.js file which I can run to fill in initial data to the database. I have no problem doing this on my local maschine. I just write the mongo commands in my seed.js file and run…
June
  • 385
  • 5
  • 14
5
votes
2 answers

Do you need ssl for connection between mongolab and heroku?

Is it secure to have data be sent to free database at mongolab from heroku app. Data could be like emails, and preferences. Or do you need ssl, i've read about mongodb ssl. I've asked around but couldn't find anything specific to mongolab.
Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168
5
votes
3 answers

Mongodb:SyntaxError: Unexpected identifier

i am new in mongodb. i am creating free database using mongolab. my database name is enron. connecting to mongo database using online mongoshell then error occure. mongo ds033499.mongolab.com:33499/enron -u user -p user123 error SyntaxError:…
pramod24
  • 1,096
  • 4
  • 17
  • 38
5
votes
3 answers

How to use mongo URI in mongoLab and Heroku server

I am using MongoDb and Nodejs. Nodejs is hosted on Heroku server and Mongodb is in MongoLab through Heroku add-on. After installed MongoLab add-on, I received this…
user2888686
  • 667
  • 2
  • 9
  • 12
5
votes
1 answer

MongoLab vs Azure Table Storage

Take a 100gb database for this example: Azure Storage cost: £6.05/m MongoLab on AWS with 1 node cost: £153.18 /m Am I missing something? Calculated something incorrectly? Can someone clear things up for me here? I would much rather use MongoLab as I…
MaxWillmott
  • 2,170
  • 2
  • 23
  • 34