March 5, 2020 at 9:08 pm
trying to help 3rd party app (can't fix tsql) with an index big tie up on key lookups, made covering index still won't use it
March 5, 2020 at 9:29 pm
What's your question?
The absence of evidence is not evidence of absence.
Martin Rees
You can lead a horse to water, but a pencil must be lead.
Stan Laurel
March 5, 2020 at 9:49 pm
To be honest, can't tell much from the picture of the execution plan. Even though you can't fix the T-SQL (the best way to fix if possible), actually seeing the code would be quite helpful as well. So would seeing the DDL for the tables and the indexes on the tables.
March 5, 2020 at 11:59 pm
What's the query and what indexes do you have on the table? and how on Earth do you expect people to make out a tiny screen dump of an execution plan?
March 6, 2020 at 3:08 pm
sorry image did not come across as planned, I missed an obvious on the key lookup that actual rows millions of rows more than estimated. The even uglier part of this is this 3rd party reporting tool they are using goes against the RO node of an AG. So not only is not changing sql an option but adding and index on the OLTP side may have a negative effect. this is a massive EMR database with over 9k users may try to measure how out of sort index/stats are (run ola's index maint plan every sunday)
March 6, 2020 at 4:47 pm
sorry image did not come across as planned, I missed an obvious on the key lookup that actual rows millions of rows more than estimated. The even uglier part of this is this 3rd party reporting tool they are using goes against the RO node of an AG. So not only is not changing sql an option but adding and index on the OLTP side may have a negative effect. this is a massive EMR database with over 9k users may try to measure how out of sort index/stats are (run ola's index maint plan every sunday)
I guess I'd start beating on the 3rd party to fix their junk.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply