firebird-psql

Firebird 2.5 exception handling within autonomous transaction

耗尽温柔 提交于 2020-02-24 11:14:13
问题 I'm experiencing performance drop in one of our Firebird stored procedures and I have no clue why. I have found the following code in the mentioned SP: declare v_dummy integer; ... in autonomous transaction do begin -- insert may fail, but that is not a problem because it means the record is already there insert into my_table(my_field) values (:input_param); when ANY do v_dummy = 1; end I see few dozens of records in RDB$TRANSACTIONS table with STATE 3, no relevant records in MON$TRANSACTIONS

Firebird 2.5 exception handling within autonomous transaction

本秂侑毒 提交于 2020-02-24 11:13:10
问题 I'm experiencing performance drop in one of our Firebird stored procedures and I have no clue why. I have found the following code in the mentioned SP: declare v_dummy integer; ... in autonomous transaction do begin -- insert may fail, but that is not a problem because it means the record is already there insert into my_table(my_field) values (:input_param); when ANY do v_dummy = 1; end I see few dozens of records in RDB$TRANSACTIONS table with STATE 3, no relevant records in MON$TRANSACTIONS