Published on Feb 22,2017
739 Views
Email Post

What is MongoDB?

MongoDB is a cross-platform document-oriented database. It is a free and open-source software. If you download MongoDB, with the package or soft ware, there are tools that will be downloaded. Every tool has its own kind of usage. These tools have been divided into 6 uses for better understanding.

Core processor- mongod  is involved in database activities, mongos  is related with Query Router and mongo(mongo shell).

Window services- It is mongod.exe and mongos.exe

Binary import and export tools- mongodump, mongostore, bsondump, mongooplog

Data import and export tools- mongoimport and mongoexport

Diagnostics tool- mongostat, mongotop, mongosniff, mongoperf

GridFS- mongofiles (for large files)

MongoDB Database

mongod is the primary daemon process for the MongoDB system. Database is a physical container for collections. Each database gets its own set of files on the file system. A single MongoDB server has multiple databases and handles data requests, manages data format, performs background management operations.

MongoDB has a collection of MongoDB documents in it. It exists within a single database. Also, documents within a collection can have different fields and each are of similar purpose. This document follows a JSon format.

What is JSON and BSON?

JSON is JavaScript Object Notation. It has a light-weight data interchange format, where data is small, and interchanging becomes easy. It is easy for humans to read and write the formats. It is easy for machines as well to pass and generate. The crucial factor here is that the text format is completely language independent. You can embed JSON in any language.

There are two things that have to be kept in mind while dealing with JSON– Object and Array. Object is a collection of name/value pairs. An Array is an ordered list of values. 100 JSON documents can be embedded while working with MongoDB.

BSON is Binary JavaScript Object Notation. Please note that BSON format cannot be read. MongoDB uses BSON to store data entirely in its format.

Got a question for us? Mention them in the comments section and we will get back to you.

Understanding Journaling in MongoDB

MongoDB Tutorial A Smart Career Investment

MongoDB Dev & Admin Training

About Author
edureka
Published on Feb 22,2017

Share on

Browse Categories

Comments
3 Comments