HomeProjectsBlogContact
Tips & writing

Notes from the workbench

Practical engineering tips, design theory and performance breakdowns — written for developers and founders who like their advice tested in production.

Filtering by tag #postgresql — clear

SQL Joins Explained with Simple Examples

SQL Joins Explained with Simple Examples

INNER, LEFT, RIGHT and FULL joins, the anti-join trick for "find rows with no match", and why joins sometimes multiply your rows. Clear examples you can run against any SQL database.

Read →
Why LOWER() and TRIM() Kill Your SQL Index Performance

Why LOWER() and TRIM() Kill Your SQL Index Performance

A query that runs in 4ms locally but takes 9 seconds in production usually has the same cause: a function like LOWER() or TRIM() wrapped around an indexed column. Learn why this makes queries non-sargable, how to spot it in your execution plan, and five engine-specific fixes — from functional indexes to PostgreSQL's citext type.

Read →