MongoDB

MongoDB

MongoDB

MongoDB is an open source NoSQL database management program. NoSQL is used as an alternative to traditional relational databases. NoSQL databases are quite useful for working with large sets of distributed data. MongoDB is a tool that can manage document-oriented information, store or retrieve information.

MongoDB supports various forms of data. It is one of the many nonrelational database technologies that arose in the mid-2000s under the NoSQL banner -- normally, for use in big data applications and other processing jobs involving data that doesn't fit well in a rigid relational model. Instead of using tables and rows as in relational databases, the MongoDB architecture is made up of collections and documents.

Organizations can use Mongo DB for its ad-hoc queries, indexing, load balancing, aggregation, server-side JavaScript execution and other features.

How it works

MongoDB makes use of records which are made up of documents that contain a data structure composed of field and value pairs. Documents are the basic unit of data in MongoDB. The documents are similar to JavaScript Object Notation, but use a variant called Binary JSON (BSON). The benefit of using BSON is that it accommodates more data types. The fields in these documents are similar to the columns in a relational database. Values contained can be a variety of data types, including other documents, arrays and arrays of documents, according to the MongoDB user manual. Documents will also incorporate a primary key as a unique identifier.

Sets of documents are called collections, which function as the equivalent of relational database tables. Collections can contain any type of data, but the restriction is the data in a collection cannot be spread across different databases.

The mongo shell is a standard component of the open source distributions of MongoDB. Once MongoDB is installed, users connect the mongo shell to their running MongoDB instances. The mongo shell acts as an interactive JavaScript interface to MongoDB, which allows users to query and update data, and conduct administrative operations.

To view or add a comment, sign in

More articles by Prashant Singh

  • CSS

    What Is CSS? CSS stands for cascading style sheets. In short, CSS is a design language that makes a website look more…

  • Data Architecture

    What is data architecture? Data architecture is the process of standardizing how organizations collect, store…

  • DevOps

    DevOps (a portmanteau of “development” and “operations”) is the combination of practices and tools designed to increase…

  • HR Business Partner

    What is an HR business partner? The definition of a HR business partner is an experienced human resource professional…

  • Microsoft Azure

    What is Microsoft Azure: How Does It Work and Services Azure is a cloud computing platform and an online portal that…

  • React

    What Is React? React is a JavaScript-based UI development library. Facebook and an open-source developer community run…

  • SSD Vs HDD

    What is a Hard Disk Drive? An HDD uses magnetism, which allows you to store data on a rotating platter. It has a…

  • C#

    What Is C#? C# is a modern, general-purpose programming language that can be used to perform a wide range of tasks and…

  • High-Frequency Trading

    What Is High-Frequency Trading? High-frequency trading (HFT) is an automated trading platform that large investment…

  • Business analyst

    Business analysts use data to form business insights and recommend changes in businesses and other organizations…

Insights from the community

Others also viewed

Explore topics