|
原帖由 owlstudio 于 2008-7-3 21:59 发表 ![]()
很是疑惑: 先提交的任务被后提交的任务给阻塞,这有点不符合数据库的原理啊!
晶晶小妹 and your experiments can be used to modify our understanding of the transaction mechanism. That is, the starting time of the transaction is NOT the time you submit the DML, but the time Oracle needs to lock the first row in the table. Think of this SQL: insert into mytable select * from verybigtable where... You won't see the TX lock until the query part starts to return rows. If "select * from verybigtable where..." takes 10 minutes to find the first matching row, the time lag will be 10 minutes.
Yong Huang
[ 本帖最后由 Yong Huang 于 2009-7-15 12:49 编辑 ] |
|