Posts
ALEX BEVILACQUA
Cancel

Optimizing MongoDB Compound Indexes - The "Equality - Sort - Range" (ESR) Rule

Working in Technical Services at MongoDB I find that time and again customers need assistance understanding why the operations they’ve created indexes for may not be performing optimally. When prov...

Recovering a WiredTiger collection from a corrupt MongoDB installation

April, 1 2019: I've received a LOT of feedback on this article since it was published. I would like to point out that although the methods described here may still work, MongoDB introduced a --rep...

Generating a ScummVM Games List

2021-06-01: Note that you can actually generate the games list directly from the scummvm binary by running scummvm --list-all-games. Oops … A long time ago I reached out to the ScummVM leaders...

Formatting MongoDB 4.4+ Logs

MongoDB has always output log entries as plaintext. Starting in MongoDB 4.4, mongod / mongos instances now output all log messages in structured JSON format. This includes log output sent to the...

Sanitarium: The ScummVM Asylum Engine Journey Concludes

With PR#2982 - ENGINES: Sanitarium engine being recently merged into ScummVM I wanted to take some time to chronicle the original development efforts which began in 2009. At the time I was looking...

Ruby Call Path Analysis using TracePoint

During a recent diagnostic analysis exercise I needed to identify if there was additional “work” being done based on a single option being changed. As Ruby offers numerous productivity tools for de...

Same Blog, New Look!

Ever since I started this blog in 2012, I’ve been using Octopress to generate the pages and push to generated content to GitHub Pages for hosting. Octopress is a set of scripts and helpers built on...

Analysis and Optimization of an N+1 Scenario in Mongoid

The N + 1 queries problem is a common issue Rails applications face whereby iterating an array of models and accessing an association results in a sub-optimal pattern of recurring queries. To addr...

Visualizing a Replica Set's Sync Source Chain

A MongoDB replica set is a group of mongod processes that maintain the same data set. The PRIMARY node receives all write operations and The SECONDARY nodes replicate the PRIMARY’s oplog and apply ...

MongoDB 5.0 Initial Sync Progress Monitoring Improvements

<SHAMELESS_PLUG> My previous article about initial sync progress monitoring got some attention, and as I’m a Technical Services Engineer at MongoDB, I got to provide direct feedback during t...