I am trying to simulate a database recovery subsystem using java. However, I have the following questions.
Whenever begin transaction is issued, is it always necessary that there should be an end transaction? (Like the below example)
b1 --- Begin txn 1
r1(X) --- Read item X using txn 1
e1 --- End txn 1
As per the above example, I am not issuing a Commit transaction statement. So, will my transaction succeed or fail? If the above example, is as below,
b1 --- Begin txn 1
r1(X) --- Read item X using txn 1
c1 --- commit txn 1
what is the difference between end and commit?
Please let me know if you need more information.
END TRANSACTION
. – Hamlet Hakobyan Feb 11 '13 at 5:37