Mar 25, 2024 |
Insight for DBAs, MongoDB
Indexes in MongoDB play a crucial role in improving the query performance and increasing the overall database efficiency. Without indexes, MongoDB will perform a collection scan, i.e., it will read all the documents to find if they match the condition specified in the query and cause low response time. Indexes help in navigating directly to […]
Sep 28, 2023 |
Insight for DBAs, MongoDB
In this blog post, we will discuss replacing a Mongo node. Consider a scenario when a node is going to be decommissioned for some reason or if a node’s data partition is almost full and not extendable. To avoid the disk getting full or decommissioned, we need to replace that node with a new node. […]
Jun 29, 2023 |
Insight for DBAs, MongoDB, Percona Software
Before Percona Server for MongoDB 4.4 (PSMDB), the best practice to create an index was doing it in a rolling manner. Many folks used to create directly on Primary, resulting in the first index being created successfully on Primary and then replicated to Secondary nodes. Starting from PSMDB 4.4, there was a new parameter commitQuorum […]
Mar 10, 2023 |
Insight for DBAs, MongoDB, Percona Software
In this blog post, we will discuss the capped collection of MongoDB. Capped collection is a fixed-type collection that inserts docs in a circular fashion. This means once allocated files are full, data at the beginning of the first file is overwritten. Consider this: we define a capped collection of size 1GB, it will purge […]
Oct 17, 2022 |
Insight for DBAs, MongoDB, Percona Software
In this blog post, we will discuss delayed members of a replica set and how it can be useful. A delayed member of the replica set is similar to like other members of the replica set but its data set mirrors the set delayed state of the data. Let’s say if a delayed node is […]
Oct 07, 2022 |
Insight for DBAs, MongoDB, Percona Software
In this blog post, we will discuss deploying a Percona Server for MongoDB (PSMDB) replica set with Ansible*. Ansible is a popular automation tool that can configure systems, deploy software, and orchestrate more advanced tasks like continuous deployments or zero downtime rolling updates. Its main goals are simplicity and ease of use. By default, it […]
Jun 07, 2022 |
Insight for DBAs, MongoDB, Open Source, Percona Software
In this blog post, we will discuss how we can migrate from the enterprise/community edition of MongoDB to Percona Server for MongoDB. But before we begin, let’s take a second to explain why you should migrate to Percona Server for MongoDB. Percona Server for MongoDB is a free, source available, drop-in replacement for MongoDB, but […]
Jun 03, 2022 |
Insight for DBAs, MongoDB, Percona Software
In this blog post, we will discuss how can we migrate from a replica set to sharded cluster. Before moving to migration let me briefly explain Replication and Sharding and why do we need to shard a replica Set. Replication: It creates additional copies of data and allows for automatic failover to another node in […]
Feb 15, 2021 |
Insight for DBAs, Insight for Developers, MongoDB
MongoDB is one of the most admired and effortless NoSQL databases to set up. Developers want to spend time building the features for their application, and with MongoDB, developers can build the application quickly while utilizing well-supported infrastructure and high availability with automatic failover. In this blog post, we will discuss the top five things […]