🔥 The DB Grill 🔥

Where database blog posts get flame-broiled to perfection

MongoDB Index Intersection (and PostgreSQL Bitmap-and)
Originally from dev.to/feed/franckpachot
November 27, 2025 • Roasted by Alex "Downtime" Rodriguez Read Original Article

Alright team, gather 'round the virtual water cooler. I just read this little love letter to the query planner, and my pager-induced twitch is acting up again. It’s a beautiful, academic exploration of a feature that sounds great on a slide deck but is an absolute grenade in practice. Let me break down this masterpiece of “theoretical performance” for you.

So, here’s my prediction. Some hotshot developer, armed with this article, is going to deploy a new "ad-hoc analytics feature" without the right compound index. They'll justify it by saying, "the database is smart enough to use index intersection!" For a few weeks, it'll seem fine. Then, on the first day of a long weekend, a user will run a query with just the right (or wrong) parameters. The planner, in its infinite wisdom, will forgo a simple scan, opt for a "clever" AND_HASH plan, consume every last byte of RAM on the primary node, trigger a failover cascade, and bring the entire application to its knees.

And I'll be there, staring at the Grafana dashboard that looks like a Jackson Pollock painting, adding another vendor sticker to my laptop's graveyard. Back to work.