MySQL Forums
Forum List  »  InnoDB

why transaction seems not work?
Posted by: 建伟 程
Date: September 12, 2016 12:24AM

Hi,

test evn:

1.the mysql (in fact is 5.5.50-MariaDB),
2.write five million records
3.one record size is 400 bytes.

test steps:
1. use the query("set autocommit=0") and query("commit") in the code,the result
write the 5 million records in the 11 minutes.

2. not use the transaction to write the 5 million recors by remove the query("set autocommit=0") and query("commit") in the code,the result still be 11 minutes;

why

Thank u
william

Options: ReplyQuote


Subject
Views
Written By
Posted
why transaction seems not work?
1629
September 12, 2016 12:24AM
784
September 12, 2016 07:52PM
729
September 13, 2016 04:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.