Comment

Comment by jerrysievert

> Failure to actually improve query performance: most of the time, the optimizer is actually right.

my favorite response to someone complaining about a query doing a sequential scan is to tell them to `set enable_seqscan = false;` and rerun the query. usually, Postgres is right. it's rare that it is wrong, but it's nice to have a workaround for those few times that it's wrong - at least on fairly static data.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton