The SQLNirvana blog
Articles about indexes
Tuning, upgrades, vacuum, indexes and security, written for teams that look after their own databases.
PostgreSQL foreign keys without indexes slow down deletes and joins
PostgreSQL indexes the referenced side of a foreign key, but not the referencing side. Why that matters, how to find the gaps, and how to fix them without locking.
14 Sep 2026 · 2 min readDuplicate and redundant indexes: find them and drop them safely
Every extra index slows down writes and uses memory. Here's how to find the ones that do nothing in MySQL and PostgreSQL, and how to remove them without risk.
02 Sep 2026 · 2 min read