Features of MongoDB




Hello everyone in this article we will learn about MongoDB features. There are the most important features available in MongoDB. Let’s go.

MongoDB with .Net Core course link => https://www.udemy.com/mongodb-with-net-core-sagar-jaybhay/

Following are the Features of MongoDB

Indexing
Aggregation
Replication
Transactions
Ad hoc queries
File Storage
Load balancing
Capped Collection
Schema-less database

Now we will learn in details.
1.      Indexing
Indexing uses to improve the performance of what you search in a database. You can index any field in a document with primary and secondary indices. Using index feature performance automatically increased.  

2.      Aggregation
In MongoDB, you can perform three ways to aggregation methods.
I.        Aggregation Pipeline
II.     Map reduce function
III.  Single purpose aggregation.
Aggregation operations and batch processing you can use Map reduce, but aggregation pipeline delivers better performance for other aggregation operations.

3.      Replication
MongoDB delivers high accessibility with replication sets and consists of two or more copies of the information. The role of primary or secondary nodes at any time in Replication. In Primary node, all writes and reads are done and in secondary nodes maintain a copy of the data of the primary using built-in replication.

MongoDB with .Net Core course link => https://www.udemy.com/mongodb-with-net-core-sagar-jaybhay/

4.      Transactions
In June 2018, MongoDB 4.0 released and in that added multi-document ACID transactions support.

5.      Ad hoc queries
Range query and regular expression search supports in MongoDB. In MongoDB, queries return specific fields of documents and also contain user-defined JavaScript functions.
For example, If you want to retrieve the student name record from the student table.

In mongoDB you can write query like,
db.Student find( {stud_name:/John/ });

whereas in SQL you can write a query like,

Select * from Student where stud_name = ‘John’;

6.      File Storage
MongoDB used as a file system and its called Grid file system with load balancing and data replication features over multiple machines for storing files also included with MongoDB drivers. MongoDB disclosures function for file manipulation.
7.      Load Balancing
MongoDB scales flat using sharding. You can choose a shard key, which determines how the data in a collection will be circulated. The data is split into ranges and circulated across multiple shards.


8.      Capped Collection
MongoDB supports fixed-size collections and it’s called capped collections. This capped collection of collection maintains insertion order and once the definite size has been reached behaves like a circular queue.
For creating a capped collection you can use db.createCollection command.




9.      Schema-less database
MongoDB is a schema-less database written in C++ because MongoDB database is more flexible than traditional database tables. In MongoDB no need for type mapping which removes an additional drain.

MongoDB with .Net Core course link => https://www.udemy.com/mongodb-with-net-core-sagar-jaybhay/


Other features of MongoDB such as,

v In the MongoDB database, the rows don’t need to have a schema defined beforehand.

v MongoDB allows representing hierarchical relationships or store arrays or other more complex structure within the data model.

v  MongoDB is a rich query language and it’s supporting all the CRUD (Create, Read, Update, and Delete) operations.


MongoDB with .Net Core course link => https://www.udemy.com/mongodb-with-net-core-sagar-jaybhay/



Comments

Popular posts from this blog

ALTER statement in MySQL

Order By Clause in MySQL

MySQL Constraint – UNIQUE