Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> > The optimizer is usually smarter than you think.

> Except for when it isn't, and moves heavy calculation inside a nested loop inside a nested loop to avoid an index scan. Nothing is perfect.

Yeah that's also been my experience. It's true that Postgres is usually smarter than I think, when I try to figure out why it's not using a better query plan I eventually find out that it wouldn't be better at all. But from time to time, it genuinely is taking a bad decision and having no power over that at all is a problem

 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: