NoSql
NoSql is stands for "not only SQL". It is distributed and open source. NoSql database is used for working with large number of data sets.It is not required relational schemas as the traditional database applications.As the example google and also Amazon use this database because the importance of the data consistency.
Document database means data stored as the documentation format.Developers can update the programs without referring the master schema.Documented database use with JavaScript, JavaScript object notation(JSON),XML and other data formats can use as well.Document database used for content management and also mobile application data handling.CouchDB, DocumentDB,MongoDB are the examples for document databases.
MongoDB
- MongoDB is open source document database.written in C++.It provides high performance,high availability and easy scalability.Use spiderMonkey JavaScript engine for MongoDB.
- A single MongoDB server has multiple databases.
- There is something called Collection.it is a group of MongoDB documents like as tables of RDBMS.collection appear a single database.
- Not only that there is something called as document.it has dynamic schema.it means in the same collection do not need to have same set of fields.Common fields in the collection's document can hold different data types.
Relationship between RDBMS and MongoDB
RDBMS MongoDB
Database Database
Table Collection
Tuple/Row Document
column Field
Table Join Embedded Documents
Primary Key Primary Key (Default key _id provided by MongoDB itself)
Database Server and Client
Mysqld/Oracle mongod
mysql/sqlplus mongo
Advantages of MongoDB over RDBMS
Schema less,easy to scale,no complex joins and not need to mapping of application
objects to database objects etc.
Where to use MongoDB
big data,content management and delivery,Data Hub,User data management,Mobile and social Infrastructure.
No comments:
Post a Comment