Spread the love

MongoDB Is a collection-oriented, schema-free and file based database. It’s scalable, high-performance, open source and written in C++. A vital characteristic from a programmer’s standpoint would  be its powerful query language.

The Official website has fairly good mongodb query tutorial, so we’ll just outline the important concepts here.

Terminology:

Document – is a set of key-value pairs (like a hash in crimson), in which keys are strings and values are some of a rich set of supported data types. It is possible to imagine it as a row in a relational

database, together with keys being the column names.

BSON – is a binary-encoded serialization of all JSON-like documents. BSON is made to be lightweight, traversable effective. BSON, such as JSON, supports embedding of objects and arrays

in different objects and arrays.

Data Types – Mongo supports all basic JSON data types such as string, integer, boolean, double, null, variety, and item, in addition to specific data types such as date, object_id, binary information, regular expression,

and code.

Set – is a set of files, usually using a similar arrangement. It is possible to imagine it as a table in a relational database.

Indexing – is comparable to the way that it functions in relational databases. Every file receives a default indicator on the “_id” feature, which also functions as a key key.

Embedding – would be the nesting of objects and arrays in a record like pre-joined information Or just like a ‘perspective’ in relational database. Therefore, for instance all of the remarks on a Photo could be embedded

Inside the photograph record itself rather than storing them in another collection.