Hacker News new | ask | show | jobs
by ovi256 2694 days ago
I've written cron jobs to update mysql statistics to prevent it from choosing bad query plans. It's as terrible as it sounds.
1 comments

How come it's not automatic and built-in? Why is a script terrible? (Does it have to enumerate all tables and piecewise run the stat update?)
Yes, the stats update is per table. We only updated it for a few tables we really cared about.