Any relational database has a
typical schema design that shows number of tables and the relationship between these tables. While in MongoDB there is no concept
of relationship
Advantages
MongoDB is document database in which one collection holds different different documents
No complex joins
Deep query-ability. MongoDB supports dynamic queries on documents using a document-based query language that's nearly as powerful as SQL
Duplicate the data (but limited) because disk space is cheap as compare to compute time.
Do complex aggregation in the schema
In MongoDB schema design will have one collection post and has the following structure:
{
name : "sandeep"
age : 10
address[
{
house : "abc"
state : "test"
}
]
}
Nice information thank you,if you want more information please visit our link Java online training Bangalore
ReplyDelete