Correcting transaction management to get more performance on INSERT.