Hi we run 2019 std. I took a quick look at the tuning advisor yesterday and saw terms like file, workload, plan cache and query store. I read a little too but could not come away with a quick decision if its a route I want to take for going further with recommendations on a specific query I have or even queries that may come up in the future.
I know the estimated execution plan made no recommendations on the specific query. And yet, after taking the original query and first shaving off about 4 million data points from 2 billion to a special mart, then splitting the query into 2 with a temp table in between to force sql's hand a bit, and then tweaking the where clause, the query went from 14 minutes to 10 seconds.
Is the tuning advisor a tool that could have recommended even a portion of those steps I took? Or equally good alternatives? Does somebody just put the query in a file, choose file and push a button?