MongoDB Drop collection

In MongoDB, we can manually drop a collection to completely delete a collection from a database using db.collection_name.drop() method. Type the command use DATABASE_NAME in the command prompt to create a new database or to select the already created database with the respective name. For Example: use Hellodb Type the command show collections in the … Read more

MongoDB Create Collection

Creating a collection is an automatic task in MongoDB. This is a distinguished feature in MongoDB, where a collection is automatically created when when we insert some documents. However in MongoDB, we can also create a collection manually, using the command db.createCollection. Type the command use DATABASE_NAME in the command prompt to create a new … Read more

MongoDB Drop Database

In MongoDB, we can manually drop a database to delete the associated data files of the current database using dropDatabase command. Type the command use DATABASE_NAME in the command prompt to create a new database or to select the already created database with the respective name. For Example: use Hellodb Type the command dropDatabase() in … Read more

MongoDB Create Database

In MongoDB, we can manually create a collection, but creating a database is an automatic task in MongoDB. This is a distinguished feature in MongoDB, unlike the SQL databases where creating a database is a manual task. A database is automatically created when a value is saved into the defined collection at first time. Type … Read more

MongoDB Data Modeling

In database design and object-oriented programming, Data Modeling is a popular term. Data modeling can be defined as the process of creating a conceptual model of how data items relate to each other. The whole process consists of creating a conceptual model than a logical model and at last a physical schema. MongoDB is a … Read more

MongoDB Shell

MongoDB is known as a document oriented database server. In a more simple words, we can define it as an open source database server product which is used for document oriented storage. MongoDB allows interaction with MongoDB instance with the help of a JavaScript shell that was found to be useful for performing administrative functions … Read more

Install MongoDB

Install MongoDB To install MongoDB, downloading the latest and appropriate version of MongoDB that the system operating system and its version supports, is the first and foremost step. Download MongoDB from the link “http://www.mongodb.org/downloads“. MongoDB is available for every versions of Windows, except Window XP. MongoDB for Windows Server 2008 R2 edition runs only on … Read more

MongoDB Data Types

MongoDB Data Types There are various types of data that are used and are supported in MongoDB. The most common data types of MongoDB are:  Arrays: An array is a single variable which can store multiple values at a time. An array in MongoDB is used to hold many values under a single key. Boolean: … Read more

MongoDB advantages over RDBMS

MongoDB advantages / benefits over RDBMS  MongoDB is a NoSQL type of database, i.e a non relational database, which is used to store and retrieve data in other than tabular relations model, i.e, without using tables and is thus used to store big data and real-time web applications. There are several advantages of MongoDB over RDBMS, … Read more

NoSQL Databases

A database can be defined as an organized collection of data. A database is nowadays, usually stored and accessed electronically from a computer system. A database can be classified into various types based on its usage, but it can be broadly divided into 3 types: RDBMS (Relational Database Management System) OLAP (Online Analytical Processing) NoSQL … Read more