I have a view, if we runs it individually in SSMS, it runs ok, but we have a batch process at night that uses it for each individual. so overall it makes the process slow.
Now we change the view to hopefully speed it up. But I would like to compare with older version ,
which version runs faster. By running both of them in SSMS, I cannot see much difference, is there a way to see which view cost less time?
I run it in SSMS with Execution plan, I see in :
older version: Sort cost : 58%, Clustered Index scan: 41%
new version: Sort 53%, Clustered index scan 47%
So their total is all 100%, so how can I know which one is more efficient ?
I know we probably can figure that out by running our overnight process, but it usually takes more thatn 3 hours to find out.
SQLFriend