SQLNirvana by Pyro

The SQLNirvana blog

Articles about indexes

Tuning, upgrades, vacuum, indexes and security, written for teams that look after their own databases.

Allmysql 10postgresql 9upgrade 3indexes 2locks 2tuning 2vacuum 2aws 1queries 1schema 1security 1
postgresqlindexes

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 read
mysqlpostgresqlindexes

Duplicate 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

RSS feed