Your experience on this site will be improved by allowing cookies
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, a single machine may...
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....
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 groupe...
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 MongoDB, projection means selecting only the necessary data rather than selecting whole of the data of a document. If a document has 5 fields and you need to show only 3, then select only 3 fiel...
In this chapter, we will learn how to sort records in MongoDB.
To sort documents in MongoDB, you need to use sort() method. The method acc...
In this chapter, we will learn how to limit records using MongoDB.
To limit the records in MongoDB, you need to use limit() method. The m...
In this chapter, we will learn how to delete a document using MongoDB.
MongoDB's remove() method is used to remove a document from the c...
MongoDB's update() and save() methods are used to update document into a collection. The update() method updates the values in the existing doc...
In this chapter, we will learn how to query document from MongoDB collection.
To query data from MongoDB collection, you need to use MongoDB's find()