SQLSERVER 效能 建议加索引 EXEC sp_updatestats;
Posted Snowfun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQLSERVER 效能 建议加索引 EXEC sp_updatestats;相关的知识,希望对你有一定的参考价值。
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);
以上是关于SQLSERVER 效能 建议加索引 EXEC sp_updatestats;的主要内容,如果未能解决你的问题,请参考以下文章