We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0131faf + 9d03cc9 commit 7b3b0c8Copy full SHA for 7b3b0c8
1 file changed
sp_QuickieCache/sp_QuickieCache.sql
@@ -498,7 +498,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
498
HAVING
499
COUNT_BIG(DISTINCT qs.plan_handle) > 1
500
ORDER BY
501
- COUNT_BIG(DISTINCT qs.plan_handle) DESC
+ COUNT_BIG(DISTINCT qs.plan_handle) DESC,
502
+ SUM(qs.total_worker_time) DESC
503
OPTION(RECOMPILE, MAXDOP 1);
504
505
RETURN;
0 commit comments