If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Difference B\w Commit and checkpoint

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-10, 08:35
prakashbuz prakashbuz is offline
Registered User
 
Join Date: Sep 2008
Posts: 40
Difference B\w Commit and checkpoint

Hi,
Can someone tell what is the difference between commit and checkpoint.
In checkpoint the data will be written to disk.(both log and data pages).
what happens with the commit?
hope log pages will written am i correct. pls someone help...


regards,
prakashbuz
Reply With Quote
  #2 (permalink)  
Old 11-02-10, 18:09
farhy farhy is offline
Registered User
 
Join Date: Aug 2010
Posts: 19
Post

Hi,

this are different concepts.

A Checkpoint "hardens" dirty pages to the disk as you describe, so
you can go back to a consistent point in time, which is not the point of the checkpoint. A checkpoint writes dirty pages to files, in a periodic manner, which is done by the lazy writer otherwise, to reduce the recovery time in case of on error.

A commit ends a transaction, data is written to the log file for recovery, in case of a failure.
commit TranA Checkpoint Failure
V v v
TranA begin ---------
TranB begin----------------------------------------------


Sybase Blog sybdoc.com
Reply With Quote
  #3 (permalink)  
Old 11-09-10, 08:50
prakashbuz prakashbuz is offline
Registered User
 
Join Date: Sep 2008
Posts: 40
Hi,
Thanks a lot man...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On