Understand workload analyzer recommendations
Hi, I have a 4 nodes cluster, being loaded at around 20GB/day, and executing analytics queries regularly, every mn, hour, day, ... Overal activity reported by MC is: CPU from 10 to 50%, memory around 5%,. I recently decided to start working on improving execution times. I went in MC, looked at all tuning recommendations, and started by applying ALL analyze_statistics(), will play with Db Designer later. Then I asked for a new workload analyzer run, and it keeps me giving the exact same recommendations on same columns and tables. Can someone explain why I get same recommendations, again and again ? Thanks
0
Comments
Workload Analyzer pulls statistics recommendations from the query profiles and looks for queries that were ran and produced "events" of "NO HISTOGRAM" or "PREDICATE OUT OF RANGE" events.
Updating the statistics on a table in the recommendation list won't remove the "event" of the previous query's no statistics message, but as the OP reported, it will improve query performance. The good news is, as the event data is moved along in the course of doing business, older data will get purged to make room for newer stuff, and thus will no longer be reported.... eventually.
It might be worth modifying the rule to check against the actual table definition to verify that the table has statistics in order to no longer report on it.