title: "PostgreSQL Partial & Expression Indexes: The Query Optimization Your ORM Is Hiding From You"

published: true

description: "Partial indexes with WHERE clauses and expression indexes on computed values can cut index size by 90% and turn sequential scans into sub-millisecond seeks. Here's how to write them by hand."

tags: postgresql, performance, architecture, api

canonical_url: https://mvpfactory.co/blog/postgresql-partial-expression-indexes