Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ovi256
7y ago
0 comments
Share
I've written cron jobs to update mysql statistics to prevent it from choosing bad query plans. It's as terrible as it sounds.
0 comments
default
newest
oldest
pas
7y ago
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?)
ovi256
OP
7y ago
Yes, the stats update is per table. We only updated it for a few tables we really cared about.
j
/
k
navigate · click thread line to collapse