+ -
当前位置:首页 → 问答吧 → SQLServer索引更新频率

SQLServer索引更新频率

时间:2011-11-29

来源:互联网

Sqlserver 2008中索引在每次表插入新数据的时候都会更新吗?
如果不是,怎样控制?

作者: lpfvip2008   发布时间: 2011-11-29

都会更新。

作者: OrchidCat   发布时间: 2011-11-29

自问自答
Indexes are automatically maintained for a table or view whenever the table data is modified.
http://msdn.microsoft.com/en-us/library/ms190457(v=sql.100).aspx

作者: lpfvip2008   发布时间: 2011-11-29

引用 2 楼 lpfvip2008 的回复:
自问自答
Indexes are automatically maintained for a table or view whenever the table data is modified.
http://msdn.microsoft.com/en-us/library/ms190457(v=sql.100).aspx


恩 会更新的

作者: fredrickhu   发布时间: 2011-11-29

引用 2 楼 lpfvip2008 的回复:

自问自答
Indexes are automatically maintained for a table or view whenever the table data is modified.
http://msdn.microsoft.com/en-us/library/ms190457(v=sql.100).aspx

恭喜,曾点分

作者: Beirut   发布时间: 2011-11-29

Sqlserver 2008中索引在每次表插入新数据的时候都会更新吗?
--> 会更新,但有索引碎片.

如果不是,怎样控制? 
--> 需要定期重整或重建索引.

作者: ap0405140   发布时间: 2011-11-29

一定会的。

作者: szstephenzhou   发布时间: 2011-11-29

一般而言,索引的逻辑碎片<30%的时候用重新组织,超过用重新生成。

作者: gogodiy   发布时间: 2011-11-29

索引会时时更新 统计信息就不是了

作者: rucypli   发布时间: 2011-11-29

热门下载

更多