Development

img
Development

What is MongoDB - Sharding

By: Spoke Right / 11 Nov, 2023

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...

img
Development

How do I enable replication in MongoDB

By: Spoke Right / 11 Nov, 2023

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....

img
Development

What is aggregation in MongoDB?

By: Spoke Right / 11 Nov, 2023

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...

img
Development

What is Indexing Mongo DB

By: Spoke Right / 11 Nov, 2023

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...

img
Development

What is the projection In Mongo DB

By: Spoke Right / 11 Nov, 2023

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...

img
Development

How to sort Records

By: Spoke Right / 11 Nov, 2023

In this chapter, we will learn how to sort records in MongoDB.

The sort() Method

To sort documents in MongoDB, you need to use sort() method. The method acc...

img
Development

What is Limiting Records

By: Spoke Right / 11 Nov, 2023

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 limit() method. The m...

img
Development

How to delete Documents

By: Spoke Right / 11 Nov, 2023

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 c...

img
Development

How to update a Document

By: Spoke Right / 11 Nov, 2023

MongoDB's update() and save() methods are used to update document into a collection. The update() method updates the values in the existing doc...

img
Development

How to query a Document

By: Spoke Right / 11 Nov, 2023

In this chapter, we will learn how to query document from MongoDB collection.

The find() Method

To query data from MongoDB collection, you need to use MongoDB's find()


Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0