CHECKPOINT --用于检查当前工作的数据库中被更改过的数据页或日志页,并将这些数据从数据缓冲器中强制写入硬盘
GO
DBCC FreeProcCache --从缓冲池中删除所有缓冲区
DBCC DropCleanBuffers --从过程高速缓存中删除所有元素
GO
DBCC FreeSystemCache('ALL') ;--清除SQL实例的计划缓存
GO
SET Statistics IO ON
SET Statistics TIME ON
GO

select
*
from test_person tp
where tp.name = '马本海'


SET Statistics IO OFF
SET Statistics TIME OFF
GO
DBCC DropCleanBuffers
DBCC FreeProcCache

 

相关文章:

  • 2021-11-14
  • 2022-12-23
  • 2021-11-06
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2021-11-15
  • 2022-12-23
  • 2021-11-12
相关资源
相似解决方案