预读、逻辑读、物理读的解释

预读:sql server查询的时候会在内存中生成查询计划,但在同时会去硬盘上取估计的数据放入缓存

逻辑读:从缓存中读取数据

物理读:当缓存中也没有的时候,就回去硬盘读

 

 

查看语句执行情况

set statistics profile on
set statistics io on
set statistics time on
go
<这里写上你的语句...>
go
set statistics profile off
set statistics io off
set statistics time off

For example:

SET STATISTICS io ON
SET STATISTICS time ON
go
SELECT *  FROM TBL_MeetingRoomOrder
go
SET STATISTICS profile OFF
SET STATISTICS io OFF
SET STATISTICS time OFF

 

 

 

相关文章:

  • 2021-12-28
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-12-19
相关资源
相似解决方案