What is Mongodb & its terms documents, collection, bson



MongoDB is a document database (one of the type of Document oriented NOSQL database ) that provides high performance, high availability, and easy scalability.MongoDB stores data in the form of documents, which are JSON-like field and value pairs.

Documents : Documents are analogous to structures in programming languages that associate keys with values (e.g. dictionaries, hashes, maps, and associative arrays). Formally, MongoDB documents are BSON documents.
Or if we compared to mysql, documents are like rows/ records.

Collections : A collection is a group of related documents that have a set of shared common indexes. MongoDB stores all documents in collections. Collections are analogous to a table in relational databases.
Or if we compared to mysql, Collections are like to tables.

BSON : BSON is a binary representation of JSON with additional type information. In the documents, the value of a field can be any of the BSON data types, including other documents, arrays, and arrays of documents. For more information, see Documents.

Comments

Popular posts from this blog

What is MQTT protocol & its use

What the hack is Call, bind & apply

What is Provider in Angular Js?