Mongo DB
Mongo DB
What Is MongoDB:
1.MongoDB is a document-oriented, no sequel (NoSQL) database.
2.It is basically a database.
3.MongoDB maps to the objects in your application code, making data easy to
work with.
4.It is very flexible.
5.It is not much easy and not much hard.
Features of MongoDB:
1.Ad-Hoc Queries:
1.While designing a database we don’t know the future queries.
2.MongoDB supports these type of queries. And it can be updated further in
real time.
2.Aggregation:
1.MongoDB has aggregation framework.
Input
Match
Group
Sort
Output
3.Schema-Less Database:
1.In this case different document can have different fields. The size, content,
type may vary for different fields. So there is a flexibility in dealing with data.
4.GridFs:
1.GridFS is a framework to store access large set of data. It divides the data
into chunks and store them into different documents.
2.We can store large files like Videos.
5.Document Oriented:
1.MongoDB is a Document oriented database. There are different documents
to store different types of data. Each document has unique system generated
key or id.
6.Sharding:(To Divide)
1.For large set of data we need the Sharding mechanism. It helps to distribute
large problematic data into some MongoDB instances.
2.Sharding is a type of database partitioning that separates very large
databases into smaller, faster, more easily managed parts called data shards.
3.When there is a data in primary Node it replicates to the secondary Node.
In Case there is no data available from primary node It is available from
secondary node.
7.Indexing:
1.Indexing is one of the important option to improve the search query
performances. So we should index those fields which are matched with our
searching criteria.
8.High Performance:
1.MongoDB shows high availability and scalability. It has better query response
for indexing and replication.