Introduction to MongoDB

What is MongoDB?: Basically, MongoDB is a NoSQL database that is used to store high-volume data. Around the year 2000, it came in the light. It is written in C++ programming language, which makes it a highly scalable and performance-oriented database. It works on the concept of collection and documentation. When you look at the data storage, you will find Read More

Downloading and Installing MongoDB on Windows

Installing RoboMongo for MongoDB: MongoDB Setup There are a total of eight steps that we will follow to install MongoDB. These steps will start with how to download MongoDB. Afterwards, we will look at how to install MongoDB. Before diving into our tutorial, let’s have a look at the topics that we are going to cover in this tutorial: Steps to Follow to Install Read More

MongoDB CRUD Operations

CRUD operations: imply to the fundamental operations supported by MongoDB, which are Create, Read, Update, and Delete. Take a look at each of these operations below - Create operation - Create operation or Insert operation are used to add new documents to the collection and if the collection does not exist, it creates one. Following command can insert Read More

Database Creation Using MongoDB

What is a Database Command?: Database commands are like helper functions that allow us to write/send the data to the database. These commands are also used to modify the structure or documents that are present inside the database and helps in MongoDB create database. We will look at some important commands which are MongoDB sort command, MongoDB find command, etc. Read More

Data Models

How does MongoDB store data?: MongoDB stores data in the form of BSON -Binary encoded JSON documents which supports a huge rich collection of types. Namely Fields in BSON documents may hold arrays of values or embedded documents as requirement. In MongoDB the data base construct in such a way as a group of related collections. Each database has a Read More

Administration

What is Administration in MongoDB? : The administration documentation addresses the ongoing operation and maintenance of MongoDB instances and deployments. This documentation includes both high level overviews of these concerns as well as tutorials that cover specific procedures and processes for operating MongoDB. Watch this MongoDB video [videothumb class="col-md-12" id="5Y4W6pVbUDQ" alt="Azure Tutorial For Beginners" title="Azure Tutorial For Beginners"] 5.1 Administration Concepts Read More

Security

How does security in MongoDB work?: Security of data is paramount and therefore it is very much important to exercise control over access to the database. Though there is a long list of ways in which you can do this, but some of the important tips to help you secure your data are mentioned below : Do not connect your Read More

Aggregation

what is Aggression Operation in MongoDB?: Aggregation operation process the data records and provide the outcomes after computation. Able to perform a variety of operations, Aggregation operations combine the values from various sources and group the outcome into a single result. Aggregate () method This method is used to perform aggregation operations using following command - >db.COLLECTION_NAME.aggregate(AGGREGATE_OPERATION) Pipeline concept in Read More

Indexes

Role of Indexes in MongoDB: Indexes provide high performance read operations for frequently used queries. It includes indexes in MongoDB, describes the types and configuration options for indexes, and describes special types of indexing MongoDB supports. The section also provides tutorials detailing procedures and operational concerns, and providing information on how applications may use indexes. Basically the indexes in MongoDB Read More

Replication

What is Replication in MongoDB?: Replication is the procedure of synchronizing the data across different servers. This feature increases data availability and provides redundancy. It secures the database from significant failure due to server downtime. Not only this, Replication helps recover the database from a system failure by keeping additional copies of data. MongoDB uses replica set which is a Read More

Sharding

What is Sharding?: Database Sharding is considered to be the horizontal partitioning of a database or the search engine where each partition is called as a Shard. This is a process of compressing the data collections by splitting the database instances across multiple databases. This in turn fastens the speed of MongoDB CRUD operations. MongoDB creates Shard keys which distribute Read More

Tips for MongoDB

MongoDB Best Practices: Tip 1: Normalize if you need to future-proof data Normalization “future-proofs” your data: you should be able to use normalized data for different applications that will query the data in different ways in the future. This assumes that you have some data set that application after application, for years and years, will have to use. There are Read More