Comment

Comment by riku_iki

> I think the danger with hints is that they might only be correct when written. If the table sizes or data skew changes, they might make things worse.

they will work in prod in the way engineer is expecting. Current planner also can change its mood in unpredictable way and often generates sub-optimal plans for complex queries, because can't reason about what specific subquery will return exactly, and you learn about it when queries start work very slow in production in the middle of the night.

parent riku_iki 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton