MongoDB – Deployment
When you are preparing a MongoDB deployment, you should try to understand how your application is going to hold up in production. It’s a good idea to develop a consistent,…
When you are preparing a MongoDB deployment, you should try to understand how your application is going to hold up in production. It’s a good idea to develop a consistent,…
In this chapter, we will see how to create a backup in MongoDB. Dump MongoDB Data To create a backup of the database in MongoDB, you should use mongodump command. This command…
Sharding is the process of storing data records across multiple machines and it is MongoDB's approach to meeting the demands of data growth. As the size of the data increases,…
Replication is the process of synchronizing data across multiple servers. Replication provides redundancy and increases data availability with multiple copies of data on different database servers. Replication protects a database…
Aggregations operations process data records and return computed results. Aggregation operations group values from multiple documents together and can perform a variety of operations on the grouped data to return…
Indexes support the efficient resolution of queries. Without indexes, MongoDB must scan every document of a collection to select those documents that match the query statement. This scan is highly…
In this chapter, we will learn how to sort records in MongoDB. The sort() Method To sort documents in MongoDB, you need to use the sort() method. The method accepts a document…
In this chapter, we will learn how to limit records using MongoDB. The Limit() Method To limit the records in MongoDB, you need to use the limit() method. The method accepts one…
In MongoDB, projection means selecting only the necessary data rather than selecting the whole of the data of a document. If a document has 5 fields and you need to…
In this chapter, we will learn how to delete a document using MongoDB. The remove() Method MongoDB's remove() method is used to remove a document from the collection. remove() method accepts two…