List:General Discussion« Previous MessageNext Message »
From:Baron Schwartz Date:September 19 2007 5:09pm
Subject:Re: Rollback on a Transaction with No Updates
View as plain text  
> Robert DiFalco wrote:
>> Is there any difference between calling rollback or commit on a
>> transaction that did not alter data? For example, not a read-only
>> transaction but a transaction that only performed read-only selects. Any
>> difference in performance between calling rollback or commit? I know
>> they are functionally the same at the high level. 

I just thought of a difference.  If you are using LOCK TABLES and UNLOCK 
TABLES, these interact differently with COMMIT and ROLLBACK.  More info:

http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html

Baron
Thread
Rollback on a Transaction with No UpdatesRobert DiFalco17 Sep
  • Re: Rollback on a Transaction with No UpdatesBaron Schwartz17 Sep
    • RE: Rollback on a Transaction with No UpdatesRobert DiFalco17 Sep
      • Re: Rollback on a Transaction with No UpdatesMichael Dykman17 Sep
        • RE: Rollback on a Transaction with No UpdatesRobert DiFalco18 Sep
          • Re: Rollback on a Transaction with No UpdatesMichael Dykman18 Sep
            • RE: Rollback on a Transaction with No UpdatesRobert DiFalco18 Sep
    • Re: Rollback on a Transaction with No UpdatesBaron Schwartz19 Sep