Found 1360 Articles for MongoDB

Install MongoDB Community Edition 4.0 on Linux

Satish Kumar
Updated on 17-Jul-2023 16:31:43


Introduction MongoDB is a popular open-source NoSQL database management system known for its scalability, flexibility, and ease of use. If you're using a Linux operating system and looking to install MongoDB Community Edition 4.0, this article will provide you with a detailed guide accompanied by examples and the corresponding command outputs. Prerequisites Before proceeding with the installation, ensure that you have the following prerequisites − A Linux-based operating system (e.g., Ubuntu, CentOS, or Debian). Root or sudo privileges. An active internet connection. Step 1: Import the MongoDB GPG Key To begin the installation process, we first need to ... Read More

How to access a collection in MongoDB using Python?

Priya Mishra
Updated on 24-Jul-2023 20:12:55


MongoDB is a well-known NoSQL database that offers a scalable and flexible approach to store and retrieve data, it is also possible to access the database collections through Python, which is a versatile programming language. Integrating MongoDB with Python enables developers to interact with their database collections effortlessly. This article provides an in-depth explanation of how to access a MongoDB collection using Python. It covers the required steps, syntax, and techniques for connecting to, querying, and manipulating data. Pymongo PyMongo is a Python library that serves as the official MongoDB driver. It provides a straightforward and intuitive interface to ... Read More

How to Deploy and Manage MongoDB with Docker?

Satish Kumar
Updated on 10-Jul-2023 18:12:01


Introduction MongoDB is a popular, open-source NoSQL database that is designed to store and manage unstructured data. It provides high performance, scalability, and flexibility for modern applications. On the other hand, Docker is a containerization platform that enables developers to package their applications and dependencies into portable containers that can run consistently across different environments. It simplifies the software delivery process by providing a lightweight, isolated runtime environment for applications. Setting up the Environment Installing Docker on the local machine Before setting up MongoDB, it's important to install Docker on your local machine. Docker is a containerization platform ... Read More

Drop Collection if already exists in MongoDB using Python

Devesh Chauhan
Updated on 05-May-2023 12:58:01


MongoDB is a widely popular open-source database that stores data in a flexible JSON like format. It does not use the orthodox technique of storing data in rows and columns. Instead, it uses a more flexible approach which increases its scalability. This database is designed to handle large volumes of data and therefore, it is tailor made for modern applications. A MongoDB database consists of “collections” which is similar to a table in a RDBMS. A collection is a group of documents consisting of fields with different types of values. A database can contain numerous collections and each ... Read More

How to Install & Setup MEAN Stack on Ubuntu (MongoDB, Express.JS, Angular.JS, Node.JS)

Satish Kumar
Updated on 28-Apr-2023 16:54:18


The MEAN stack is a popular web development framework consisting of MongoDB, Express.js, Angular.js, and Node.js. It is an open-source platform that allows developers to create robust web applications quickly and efficiently. In this article, we will guide you through the installation and setup process of the MEAN stack on Ubuntu. Step 1: Install Node.js and NPM Node.js is the runtime environment that allows developers to run JavaScript code outside of the browser. It is the backbone of the MEAN stack. To install Node.js on Ubuntu, follow these steps − Open the terminal on Ubuntu by pressing Ctrl+Alt+T. Type the ... Read More

How to Use Go With MongoDB?

Sabid Ansari
Updated on 26-Apr-2023 11:21:12


MongoDB is a popular NoSQL database that is widely used in modern web applications. Go, on the other hand, is a fast and efficient programming language that is becoming increasingly popular for building web applications. In this article, we will discuss how to use Go with MongoDB, including how to connect to a MongoDB database and how to perform basic CRUD operations. Installing the MongoDB Driver for Go Before we can start using Go with MongoDB, we need to install the MongoDB driver for Go. The easiest way to do this is by using the following command − go get ... Read More

5 Useful Tools to Monitor MongoDB Performance

Satish Kumar
Updated on 11-Apr-2023 10:42:22


As more and more businesses are shifting to MongoDB for their database management, it is important to keep a close eye on its performance. Monitoring MongoDB performance can help you identify any potential issues, prevent downtime, and improve overall efficiency of your database. Here are 5 useful tools to monitor MongoDB performance − MongoDB Compass MongoDB Compass is a visual tool that provides a comprehensive view of your MongoDB database. It allows you to monitor performance of your MongoDB instance in real-time, with metrics such as disk usage, memory usage, and network traffic. With MongoDB Compass, you can also identify ... Read More

How to restart a NoSQL Database service like MongoDB?

Satish Kumar
Updated on 01-Dec-2022 08:57:14


If we're going to use a NoSQL DB for our app, then we want something fast and easy to use. We learn that "NoSQL" doesn't necessarily imply "no maintenance". We think about using managed hosting services like MongoDB's Atlas or Amazon's DynamoDB, but we choose to host it ourselves, whether on our premises or in our own cloud instance. We evaluate several NoSQL options including Redis and Cassandra and pick MongoDB. We may be able to get it installed by installing it from our Linux distribution, using Mongo’s repositories, or using a snap. But if something goes wrong, we might ... Read More

Difference between Hadoop and MongoDB

Pradeep Kumar
Updated on 25-Jul-2022 09:43:53


Hadoop was built to store and analyze large volumes of data across several computer clusters. It's a group of software programs that construct a data processing framework. This Java-based framework can process enormous amounts of data quickly and cheaply.Hadoop's core elements include HDFS, MapReduce, and the Hadoop ecosystem. The Hadoop ecosystem is made up of many modules that help with system coding, cluster management, data storage, and analytical operations. Hadoop MapReduce helps analyze enormous amounts of organized and unstructured data. Hadoop's parallel processing uses MapReduce, while Hadoop is an Apache Software Foundation trademark.Millions of people use MongoDB, an open-source NoSQL ... Read More

SignUp form using Node and MongoDB

Mayank Agarwal
Updated on 29-Apr-2021 09:30:47

3K+ Views

In this article, we will create a simple user sign-up form having some parameters. On clicking SAVE, all the user details will be saved in the MongoDB database.InstallationBefore proceeding to create the sign-up form, the following dependencies must be succesfully installed on your system.Check and install express by using the following command. Express is used to set middlewares to respond to HTTP requestsnpm install express --saveSetup the "body-parser" node module for reading the HTTP POST data.npm install body-parser --saveSetup "mongoose", as it sits on top of Node's MongoDB driver.npm install mongoose --saveExample 1Create the following files and copy paste the ... Read More

1 2 3 4 5 ... 136 Next