Sunday, December 6, 2020

MongoDB features

               MongoDB features

Having a NoSQL database the MongoDB has access to many exciting features making it more flexible, hence making it attractive, usable, popular and demanding in the crowd. Below the features are mentioned that increase the flexibility and accessibility of the use of this database.

1.Sharding

2.Indexing

3.Replication

4.Aggregation

5.Document-Oriented

6.High performance

7.GridFS

8.Ad-hoc Queries

9.Schema-Less Database

SHARDING

Sharding rescues when we want and have to deal with a large set of data. Now if queries are to be dealt with such huge amount of dataset, it mounts some problems. But the concept of Sharding comes with an aid to this issue.

Sharding helps to discrete the big problem into multiple instances. Multiple collections are made by distribution collection of the bigger set of data into smaller ones. These distributed collections are called “SHARDS”.

INDEXING

This is one of the best features of MongoDB. Indexing helps to enhance the performance of the searching among the data sets. In MongoDB documents, the fields are indexed with both the secondary and primary blocks of index. Now the database machine can efficiently solve and rectify the queries which are to be performed.

REPLICATION

This feature helps save our time for the maintenance process and also aids the smooth running of the operations. Redundancy control is done by this process of replication to overcome it, by distribution of the data to different machines. When we have the primary node down, the secondary node takes the role of the primary and resume the process without interruption; making the process smooth and time saving.

AGGREGATION

For the efficient use of the platform, the MongoDB gives us this feature, which helps to execute multiple processes on a group of data and come up with a single result. This is termed as Aggregation framework.

The three types of aggregation framework given by the MongoDB platform are:-

  1. The Map reduce function,
  2. Single purpose aggregation method, and
  3. Aggregation pipeline.

DOCUMENT ORIENTED

Being a NoSQL database, MongoDB has its own benefits as a document-oriented database. As in relational databases we have limited rows and columns for storing the data which are specific for a purpose. But here, we have fields having different types of documented sections to store a specific collection of data increasing the flexibility. Every document has its own specific unique key as well as object id which are system defined.

HIGH PERFORMANCE

As this open source database has features like indexing and replication, the response time for the query reduces and faster execution is observed; making it a better choice in the applications for real-time and big data.

Thus, increasing its availability and scalability with high performance.

GRID-FS

To store and retrieve the files, Grid-FS is the feature that is aided by MongoDB. The strategy which it avails is that — a document is segregated into small parts called the “chunks” and these are stored in a another document; where the size of the chunks are about 225 kilobytes.

Now, whenever any query is invoked for execution the chunks get assembled according to the requirement.

AD-HOC QUERIES

Ad-Hoc query refers to the query that we are unaware of when we structure the database.
In general, while designing a database’s schemas; we are not actually known in advance about what and how many queries will be performed overall.

MongoDB gives us a backup of help through the platform where we make things special here by introducing “Ad-Hoc queries”.

SCHEMA-LESS DATABASE

MongoDB is seen to be flexible through this feature when dealing the data-sets. There are no schemas and which helps us to create as many as possible fields, have as much content, and distinct sizes for different documents in the same collections.

CONCLUSION

As in above we have illustrated all the significant features and availabilities provided by MongoDB starting from Sharding, Indexing, Replication, Document-oriented database, Aggregation, Grid-FS, Schema-less database, Aa-Hoc queries and much more as detailed above; giving you a clear view and importance of this growing database.

For more such posts, do follow our Publication :
https://medium.com/tek-society

If you loved my work do help me with a clap👏 as it would boost my enthusiasm and love for posting more such briefs which would help you to mount up your knowledge.

~~Thank you.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home