Remove 01 why-not-document-write
article thumbnail

MongoDB Queries Slow Due to Flow Control but No Replication Lag?

Percona

This article shows a possible scenario of why this happens. There is always one primary node that can accept writes, but the replica set topologies vary depending on the use case and scale. This is clearly visible in the PSA topology when the write concern is set to the majority. However, after some time (not immediately!),

article thumbnail

5 Changes You Should Know in MongoDB 7.0

Percona

These tickets are categorized into Read tickets and Write tickets. When multiple operations, such as reads and writes, attempt to access the database concurrently, WiredTiger uses tickets to ensure these operations do not conflict in a way that would compromise data integrity or performance. From that, this article is born.

Metrics 98
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

How To Fix Oplog Restore Error: E11000 Duplicate Key Error Collection Using Percona Backup for MongoDB

Percona

You might wonder why this error will come during PITR as the operations in the Oplog are idempotent, meaning they always result in the same change to the database no matter how many times they’re performed. I created a collection book with four documents with a unique compound index. sort({$natural:-1}).limit(1)

Games 91
article thumbnail

Proof of Concept: Horizontal Write Scaling for MySQL With Kubernetes Operator

Percona

However, those solutions do not offer the same level of scaling for writes operation. Because the solutions still rely on writing in one single node that works as Primary. Also, in the case of multi-Primary, the writes will be distributed by transaction. Why duplicate the data?

Traffic 121
article thumbnail

An Overview of Indexes in MySQL 8.0: MySQL CREATE INDEX, Functional Indexes, and More

Percona

This blog was originally published in January 2022 and was updated in July 2023. But, while indexes greatly enhance read operations, they can also impact the speed of write operations, as the indexes need to be updated whenever data changes. One very common problem when trying to optimize a database environment is index usage.

article thumbnail

MongoDB Database Backup: Best Practices & Expert Tips

Percona

This blog was originally published in September 2020 and was updated in May 2023. That’s why it’s essential to implement the best practices and strategies for MongoDB database backups. That’s why it’s essential to implement the best practices and strategies for MongoDB database backups.

article thumbnail

Exploring PostgreSQL Backup Strategies for Enterprise-Grade Environments

Percona

This blog was originally written in September 2018 and was updated in June 2023. Why are PostgreSQL Backups Necessary? WALs, Write-Ahead Logs ) stored on disk. In this post, we cover the methods used to achieve an enterprise-grade backup strategy for the PostgreSQL cluster.