Archive: MongoDB RSS feed for this section

Join us at MongoDB Europe in London

mLab is joining the MongoDB family! This is a great time to learn more about MongoDB 4.0’s new features, new tech and methods with the experts who built MongoDB. MongoDB Europe is happening in London on November 8th. You will be able to connect with the MongoDB community as well as learn from MongoDB’s experts. […]

Full Article

Use $push to insert elements into an array

This blog post will take you through various ways of pushing to an array. You will learn how to: push from the start of an array push from the end of an array push multiple elements at once push to an array and slice push to an array and sort avoid gotchas In the most […]

Full Article

Use aggregation expressions in queries with $expr

With MongoDB 3.6 the query language gains a new level of expressivity: you can now make use of aggregation expressions in a query using the $expr operator. This feature allows you to take full advantage of all expression operators within all queries, much of which previously had to be done within application logic or was […]

Full Article

New mLab Slow Query Analyzer Features

Our customers have consistently told us through our ticketing system and in interviews that one of the most useful resources for identifying performance problems is our Slow Query Analyzer. We originally developed this feature because of how important indexing is for good performance in MongoDB. For each query that takes longer than 100ms, our Slow […]

Full Article

MongoDB connection pooling for Express applications

Express is the most popular Node.js web framework and the fourth most depended-upon package on the NPM registry. As a result of its popularity, there are an abundance of tutorials and examples for getting started with new Express apps – we too have created a “getting started” MEAN stack tutorial for the Heroku DevCenter. However, […]

Full Article

Using MongoDB $indexStats to identify and remove unused indexes

Proper indexing is critical to database performance. A single unindexed query is enough to cause significant performance degradation. It is relatively easy to spot a missing index using mLab’s Slow Query Analyzer, but the tool doesn’t provide an obvious way to identify and remove indexes that aren’t actually being used…

Full Article

Recent MongoDB ransom attacks

Many of you have likely heard that an estimated 27,000 MongoDB databases have had their data removed and held at ransom by hackers. We have received many questions about the news and wanted to discuss and share MongoDB security best practices to prevent future incidents. All database deployments hosted at mLab are safe from such […]

Full Article

Configuring a MongoDB replica set for analytics

MongoDB replica sets make it easy for developers to ensure high availability for their database deployments. A common replica set configuration is composed of three member nodes: two data-bearing nodes and one arbiter node. With two electable, data-bearing nodes, users are protected from scenarios that cause downtime for single-node deployments, such as maintenance events and […]

Full Article

MongoDB tips & tricks: Collection-level access control

As your database or project grows, you may be tasked with configuring access controls to allow different stakeholders access to the database. Rather than create a new user with full database privileges, it may be more appropriate to create a user that only has access to the data or collections they need. This allows users […]

Full Article

Telemetry Series: Queues and Effective Lock Percent

A key component of optimizing application performance is tuning the performance of the database that supports it. Each post in our Telemetry series discusses an important metric used by developers and database administrators to tune the database and describes how MongoLab users can leverage Telemetry, MongoLab’s monitoring interface, to effectively review and take action on […]

Full Article