MySQL Forums
Forum List  »  Performance

Re: Utilize maximum system resources for better performance
Posted by: Ronald Brown
Date: August 10, 2015 08:36AM

whats the difference in mysqli_begin_transaction and mysqli_autocommit ?

mysqli_autocommit($conn,FALSE);//takes 22.289810597897 minutes

mysqli_begin_transaction($conn);//takes 18.555663919449 minutes

which is better and why ?

you said `autocommit is local to your sessions` , does this mean mysqli_begin_transaction will stop all other writes to same table ? or something like that ?

i am going to use this in php file which will run by cronjob.

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Utilize maximum system resources for better performance
1022
August 10, 2015 08:36AM


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.