August 10, 2017 at 10:56 pm
Good morning Experts,
Checkpoint writes all dirty pages to disk. So, in simple recovery model, does checkpoint truncate only committed transactions or does it truncate both committed and uncommitted transactions
August 11, 2017 at 1:09 am
Checkpoint marks VLFs that are not needed for anything (replication, transactions, full backups, etc) as reusable.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 11, 2017 at 2:11 am
GilaMonster - Friday, August 11, 2017 1:09 AMCheckpoint marks VLFs that are not needed for anything (replication, transactions, full backups, etc) as reusable.
I did not understand Gail.
August 11, 2017 at 3:30 am
What, specifically, did you not understand in that statement?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 11, 2017 at 8:34 am
GilaMonster - Friday, August 11, 2017 3:30 AMWhat, specifically, did you not understand in that statement?
does checkpoint truncate only committed transactions or does it truncate both committed and uncommitted transactions?
August 11, 2017 at 8:36 am
coolchaitu - Friday, August 11, 2017 8:34 AMGilaMonster - Friday, August 11, 2017 3:30 AMWhat, specifically, did you not understand in that statement?does checkpoint truncate only committed transactions or does it truncate both committed and uncommitted transactions?
please answer if it truncates both or only committed....Both or only committed?
August 11, 2017 at 10:12 am
I answered that.
Before I waste time answering it again, please specify what, exactly, in my answer you did not understand?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 11, 2017 at 10:20 am
GilaMonster - Friday, August 11, 2017 10:12 AMI answered that.
Before I waste time answering it again, please specify what, exactly, in my answer you did not understand?
Hi Gail,
Thanks for replying. From your answer, I am unable to understand if checkpoint truncates both or only committed transactions. Could you please help me understand
August 11, 2017 at 10:31 am
coolchaitu - Friday, August 11, 2017 10:20 AMGilaMonster - Friday, August 11, 2017 10:12 AMI answered that.
Before I waste time answering it again, please specify what, exactly, in my answer you did not understand?Hi Gail,
Thanks for replying. From your answer, I am unable to understand if checkpoint truncates both or only committed transactions. Could you please help me understand
Checkpoint does neither. It marks virtual log files that are not needed for anything (replication, transactions, full backups, etc.) as reusable.
August 11, 2017 at 3:23 pm
Ok, if you don't want to help me to help you understand.
Checkpoint marks VLFs, virtual log files, as reusable, if and only if they are not needed for database activity, including open transactions, database backups, replication, change data capture or a few other things.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 11, 2017 at 3:50 pm
I think that's about as clear as it gets.
August 11, 2017 at 7:50 pm
GilaMonster - Friday, August 11, 2017 3:23 PMOk, if you don't want to help me to help you understand.Checkpoint marks VLFs, virtual log files, as reusable, if and only if they are not needed for database activity, including open transactions, database backups, replication, change data capture or a few other things.
HI Gail,
According to BOL this is what CHECKPOINT does : "Writes all dirty pages for the current database to disk".
Does this mean checkpoint is writing from memory to mdf file? Please help me understand about the CHECKPOINT operation.
August 12, 2017 at 3:59 am
coolchaitu - Friday, August 11, 2017 7:50 PM"Writes all dirty pages for the current database to disk".
Does this mean checkpoint is writing from memory to mdf file?
Yup, exactly.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 12, 2017 at 7:20 am
GilaMonster - Saturday, August 12, 2017 3:59 AMcoolchaitu - Friday, August 11, 2017 7:50 PM"Writes all dirty pages for the current database to disk".
Does this mean checkpoint is writing from memory to mdf file?Yup, exactly.
Thanks a lot Gail
Viewing 14 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic. Login to reply