Tuesday 20 October 2020

Difference Between Checkpoint And Lazy Writer

 

CHECKPOINT vs LAZY WRITER


CHECKPOINTLAZY WRITER
Checkpoint runs in an only transaction log fileThe lazy writer operates from a buffer pool
The checkpoint is the logged operation and writes to Tlog fileThe lazy writer  is the non-logged operation and did not write to Tlog file
Checkpoint can be controlled by user and SQL server engine as wellThe lazy writer only operate by the Sql server engine
The checkpoint is the background process which triggers every 3 secThe lazy writer does not have any fixed timeline and only occurs when there is memory pressure in the buffer pool
We can able to track checkpoint into Sql server logs by enabling the trace 3502Lazy writer information cannot be able to track into SQL Server logs.
In memory, free pages list not taken care and kept free listIn memory, free pages list  taken care and kept free list
We can fire a query to see checkpoint information by using Select * from:: fn_dblog (null, null) WHERE [Operation] like ‘%CKPT’

 

We don’t have any query to see lazy writer information
Command: Checkpoint  [time in a sec]No command available

No comments:

Post a Comment