WEB开发网
开发学院数据库MSSQL Server 对比SQL Server中XML AUTO和T-SQL命令 阅读

对比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.

上一页  1 2 3 4  下一页

Tags:对比 SQL Server

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接