对比SQL Server中XML AUTO和T-SQL命令
2007-08-02 09:47:12 来源:WEB开发网核心提示: 这看起来显示了T-SQL查询比其他的方式表现的要好,XML AUTO的XML查询使用了超过八倍的CPU资源但却产生了一样的I/O,对比SQL Server中XML AUTO和T-SQL命令(2),复杂的XML命令比T-SQL命令消耗了超过80倍的读取操作,同时还有许多写操作和上面的六倍的C
这看起来显示了T-SQL查询比其他的方式表现的要好。XML AUTO的XML查询使用了超过八倍的CPU资源但却产生了一样的I/O。复杂的XML命令比T-SQL命令消耗了超过80倍的读取操作,同时还有许多写操作和上面的六倍的CPU。
什么时候分析命令产生的I/O统计数据:
Table'Employes'.Scancount1,logicalreads8247,physical
reads0,read-aheadreads7520,loblogicalreads0,lob
physicalreads0,lobread-aheadreads0.
Table'Employes'.Scancount1,logicalreads8247,physical
reads0,read-aheadreads4221,loblogicalreads0,lob
physicalreads0,lobread-aheadreads0.
Table'Employes'.Scancount1,logicalreads8247,physical
reads500,read-aheadreads2586,loblogicalreads0,lob
physicalreads0,lobread-aheadreads0.
Table'Worktable'.Scancount0,logicalreads7,physical
reads1,read-aheadreads0,loblogicalreads229128,lob
physicalreads285,lobread-aheadreads43082.
Table'Employes'.Scancount1,logicalreads8247,physical
reads0,read-aheadreads1394,loblogicalreads0,lob
physicalreads0,lobread-aheadreads0.
Table'Worktable'.Scancount0,logicalreads7,physical
reads0,read-aheadreads0,loblogicalreads230170,lob
physicalreads0,lobread-aheadreads43115.
Table'Employes'.Scancount1,logicalreads8247,physical
reads125,read-aheadreads3835,loblogicalreads0,lob
physicalreads0,lobread-aheadreads0.
Table'Worktable'.Scancount0,logicalreads7,physical
reads0,read-aheadreads0,loblogicalreads230170,lob
physicalreads140,lobread-aheadreads43115.
- ››sql server自动生成批量执行SQL脚本的批处理
- ››sql server 2008亿万数据性能优化
- ››SQL Server 2008清空数据库日志方法
- ››sqlserver安装和简单的使用
- ››SQL Sever 2008 R2 数据库管理
- ››SQL SERVER无法安装成功,sqlstp.log文件提示[未发...
- ››Sql Server中通过父记录查找出所有关联的子记录
- ››SqlServer触发器、存储过程和函数
- ››SQL Server 中的事务(含义,属性,管理)
- ››Sqlite数据库插入和读取图片数据
- ››Sql server 2005拒绝了对对象 'xx表' (数...
- ››Sql server 2005拒绝了对对象 'xx表' (数...
更多精彩
赞助商链接