SQL Database Index Guide: Index Types and When to Avoid Them
An index can turn a slow query into a fast one, or slow down every insert on the table. In this article, we explain database indexing in SQL Server, PostgreSQL, and MySQL: eleven index types, when to use each one, when to avoid them, and how to find missing and unused indexes.