Y
Hacker News
new
|
ask
|
show
|
jobs
by
tomnipotent
2692 days ago
I can't tell you how many times over 20 years I've heard a DBA tell me "the statistics weren't updated" after an incident.
2 comments
ovi256
2692 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.
link
pas
2692 days 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?)
link
ovi256
2692 days ago
Yes, the stats update is per table. We only updated it for a few tables we really cared about.
link
silon42
2692 days ago
This is my reason for preferring NOSQL where possible.
link