mysql - 执行大量SQL进行批量插入或更新,开启事务执行会提高执行速度还是降低执行速度?
大家讲道理
大家讲道理 2017-04-17 15:42:32
0
1
966
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
阿神

Regardless of the size of the transaction, committing is a very fast operation. It is not that the larger the transaction (in other words, the more data is affected), the longer it takes to commit. If you only do it once when necessary Submit (when transaction processing is completed), then users can not only improve performance, but also reduce contention for shared resources (log files, locks protecting sga class shared data structures).
--Excerpted from <oracle entry classic >

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template