MongoDB Components
Show More Show Less View Video Transcript
0:00
MongoDB components
0:02
Let us discuss what are the different components the MongoDB is having
0:07
MongoDB is having mainly three components. The first one is the database
0:10
Obviously the database will be there where we will be storing our data
0:14
And database will be consisting of multiple collections. Collections are actually nothing but the tables in the RDBMS
0:21
It is having the ogy like this. And these collections will have the documents and these documents are nothing but the key
0:27
value pair where actually the data will be stored. So, MongoDB components are mainly of
0:33
three. So, one is the databases, next one is the collections, and next one is the documents
0:38
So, let us go for some further discussion on it. So, what are the different MongoDB components
0:46
So, MongoDB components are documents, collections, and databases. So let us go one by one
0:53
So documents in the MongoDB. So the documents are the set of key values
0:57
value pairs and the documents have the dynamic schema. So, that is very important. In case of
1:03
RDBMS, all the tables must be having a fixed static schema. All the records, all the tapples must be
1:09
having the same number of attributes and same type of attributes But here in this case it is having a dynamic schema so we can have multiple different types of schemas for different documents So
1:21
for the documents in the same collection may or may not have the same set of fields
1:29
Next one, we are having this collection in MongoDB. So the collections are the set of MongoDB
1:35
documents and it is like the table of RDMS. So a collection, you are a collection
1:40
is actually consisting of multiple documents. So, it is having the ogy with the tables in
1:45
our RDPMS. So, collections do not enforce a schema, and documents within a collection
1:52
can have different fields, and typically all the documents in a collection are of similar
1:57
or related purpose. And that's why they'll be coming under one collection. If the documents
2:03
are similar, if the documents are related, then those documents will be coming under one collection
2:10
Next one is the database in MongoDB. That is the third component
2:13
So the database is the physical collection of containers and a single MongoDB server typically
2:19
has multiple databases. So that's why we're having mainly three components, that is the databases, collections
2:27
and documents. Thanks for watching this video
#Business Services
#Enterprise Technology
#Data Management
#Programming
#Knowledge Management

