MongoDB

MongoDB Full Text Search Tutorial

Hello, in this tutorial we are going to explore the full-text search functionalities of MongoDB right from fundamentals. MongoDB uses text indexes to perform the different full-text search operations and is case sensitive. 1. Introduction MongoDB, one of the leading NoSQL databases, is well known for its fast performance, flexible schema, scalability and great indexing capabilities. At the core of ...

Read More »

MongoDB Bulk Update Example

Hello, in this tutorial we will see a study and understand the implementation of bulk update in MongoDB. MongoDB update is used to update a document in a collection. 1. Introduction MongoDB is a document-oriented NoSQL database used for high volume data storage and provides high performance, high availability and automatic scaling. 1.1 What is MongoDB? MongoDB is a document ...

Read More »

How to Check the MongoDB Version

Hello, in this tutorial we will see how to check the exact version of the installed MongoDB. 1. Introduction If you have installed the MongoDB application on Windows or Ubuntu operating system and you don’t remember the version, then follow the below steps to check the MongoDB version. It’s very simple to check the version of MongoDB. 1.1 What is ...

Read More »

When to Use or Not to Use MongoDB

Hello, in this tutorial we will see the pros and cons of using the MongoDB. 1. Introduction MongoDB is a popular open-source document-oriented database developed by 10gen, later called the MongoDB Inc. In this case, documents are created and stored in BSON files, Binary JSON (JavaScript Object Notation) format, so all JS types of data are supported. That being the ...

Read More »

How to Install MongoDB on Ubuntu

Hello, in this tutorial we will see the installation of MongoDB on Ubuntu operating system. Table Of Contents 1. Introduction 1.1 Prerequisites 1.2 Download Ubuntu Operating System 1.3 Download & Install VMware Workstation 1.4 Install Ubuntu on VMware Workstation 2. Installation of MongoDB on Ubuntu 2.1 Adding MongoDB Repository 2.2 Installation of MongoDB Database 2.3 Start and Stop MongoDB Service ...

Read More »

MongoDB Collection Example

Hello, in this tutorial we will see a study and understand the implementation of the collection in MongoDB. The idea is to understand how MongoDB works and deploy a highly scalable and performance-oriented database. 1. Introduction MongoDB is a document-oriented NoSQL database used for high volume data storage and provides high performance, high availability and automatic scaling. 1.1 What is ...

Read More »

MongoDb Aggregate Count Example

Today we will learn about MongoDb’s aggregate function ‘Count,’ but first let’s look at a brief overview of aggregate functions. In SQL or other relational databases, aggregation in the process that records and returns computed results like SUM MIN, MAX, AVG, and COUNT. MongoDb uses a similar concept but in a different fashion – it uses the concept of data ...

Read More »

MongoDB Node.js Tutorial

In the past examples we studied the basics of MongoDb and how to manage and maintain the Mongo DB. In this example, we will demonstrate how we can use Node.js to communicate with the MongoDB server. Table Of Contents 1. Introduction 2. Project Set-Up 3. Implementation 3.1 Insert 3.2 Update 3.3 Read 3.4 Delete 4. Conclusion 1. Introduction Node.js is ...

Read More »

MongoDB insert example

The article targets at explaining how to insert the documents into a MongoDB Collection. The examples discussed in this article were developed and executed using MongoDB 3.2.6. And all these examples can be executed from the Mongo shell. Start the MongoDB instance by running ‘mongod’ process and then connect to this MongoDB instance using ‘mongo’ shell. The following table gives ...

Read More »

MongoDB Search Example

This is an example of how to query data stored in MongoDB collections. All the examples discussed in this article were developed and executed using MongoDB 3.0.3. To check the version of MongoDB you’re using, simply type version() from the Mongo shell. The following table gives an overview of the entire article: Table Of Contents 1. Introduction 2. find() and ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns