Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how do I disable transaction temporarily if I'm using innodb from java jdbc? I'm doing a mass insert and wonder if it will speed up things. or should I just set autocommit to true?

share|improve this question
up vote 0 down vote accepted

Actually things will be a bit faster if you perform a mass insert in a single transaction, this is something opposite to setting autocommit to true. Insert will go much faster if you perform it via the "Handler socket" plugin, latest Percona Server already includes it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.