Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ovi256
7y ago
0 comments
Save
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
2 comments · 1 top-level
top
newest
oldest
pas
7y ago
· 1 in thread
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