statistics io
来源:互联网 发布:曼哈顿软件 编辑:程序博客网 时间:2024/06/04 23:33
statistic i/o是一个绘画选项,它返回与你运行的语句有关的i/o信息。为演示它的使用,先清空数据缓存
dbcc dropcleanbuffers
然后运行下面的代码,开启该绘画选项并调用一个查询,
set statistics io on
select orderid,custid,empid,shipperid,orderdate,filter
from dbo.orders
where orderdate>='20060101'
and orderdate<'20060201'
go
你应该得到下面类似的输出
table orders,scan count 1,logical reads 536,phycial reads 2, read-ahead reads 532,lob logical reads 0,lob physical reads 0,lob physical reads 0,lob read-ahead reads 0
输出表明了这个表在计划中被访问的次数(scan count);从缓存读取的页数(logical reads);从磁盘读取的页数(physical reads和read-ahead reads); 与大对象相关的逻辑读取数和物理读取数(lob logical reads ,lob physical reads,lob read-ahead reads)
运行下面的代码关闭会话选项
set statistics io off
- statistics io
- Statistics IO 的用法
- 理解Set Statistics IO
- Transact-SQL命令----SET STATISTICS IO和SET STATISTICS TIME
- sql性能调试,set statistics io 和 set statistics time
- set statistics io / set statistics time结果解释(MSSQL)
- SET STATISTICS IO ON的使用
- SET STATISTICS IO 统计信息的意思
- sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME
- 利用SET STATISTICS IO和SET STATISTICS TIME 优化SQL Server查询性能
- SQL SERV ER 查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME
- sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME
- sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME---解释比较详细
- sql性能调试-讲解set statistics io 和 set statistics time (转)
- sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME
- 利用SET STATISTICS IO和SET STATISTICS TIME 优化SQL Server查询性能
- 【转】sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME
- sql查询性能调试,用SET STATISTICS IO和SET STATISTICS TIME
- Orchard基本信息
- 同步中断 异步中断
- SQL 注入防漏洞攻击
- 在YII中使用kindeditor扩展
- 一些经典书籍
- statistics io
- .net C# ADC接口中DES加密算法
- Android模拟按键点击,实现。。
- 01背包问题
- 使用spring web.xml里的配置 - 请求处理器DispatcherServlet
- 多线程中锁的实现.
- zoj1002-Fire Net
- 如何得到shell的返回值 (kettle)
- 连接池