Snowfun

导航

 

SELECT TOP 30
[Total Cost] = ROUND(avg_total_user_cost * avg_user_impact * (user_seeks + user_scans),0)
, avg_user_impact
, TableName = statement
, [EqualityUsage] = equality_columns
, [InequalityUsage] = inequality_columns
, [Include Cloumns] = included_columns
FROM sys.dm_db_missing_index_groups g
INNER JOIN sys.dm_db_missing_index_group_stats s
ON s.group_handle = g.index_group_handle
INNER JOIN sys.dm_db_missing_index_details d
ON d.index_handle = g.index_handle
where statement like '%ecology%'
ORDER BY [Total Cost] DESC;

CREATE INDEX IDX_WFTOR ON workflow_currentoperator (id);
create index idx_wfnd on workflow_nodeform (nodeid,fieldid,isview,isedit);
create index idxofuiu on ofuserinfoupdate (username,updatestate);

posted on 2019-12-25 19:38  Snowfun  阅读(1295)  评论(0编辑  收藏  举报