Use The Index, Luke

FreeDatabases & SQLuse-the-index-luke.com

Best for: Understanding indexes and slow queries

Overview

Free online book by Markus Winand on SQL indexing and performance for developers, covering PostgreSQL, MySQL, SQL Server and Oracle.

Strengths

  • Developer-focused
  • Free to read online

Drawbacks

  • Paid if you want the print or PDF edition

Alternatives to Use The Index, Luke

See all 11 →

Entity Framework Core

The default data layer for most .NET apps
Free

Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.

Dapper

Hand-written SQL without boilerplate
Free

Lightweight object mapper: you write the SQL, Dapper maps the rows to C# objects. Very little overhead, which is why it's often used next to EF Core for performance-critical queries.

PostgreSQL documentation

Checking how Postgres really behaves
Free

The official PostgreSQL manual. Unusually readable; the chapters on indexes, MVCC and EXPLAIN are worth reading in full.