transaction_retry icon indicating copy to clipboard operation
transaction_retry copied to clipboard

Why do you require isolation?

Open tillvollmer opened this issue 10 years ago • 2 comments
trafficstars

In the init section it uses this TransactionIsolation.apply_activerecord_patch

But there is no call of isolation() in the code.

Why is that needed?

tillvollmer avatar Feb 05 '15 08:02 tillvollmer

I think Rails 4 supports specifying the transaction level.. maybe that could be used?

joevandyk avatar Jan 02 '18 21:01 joevandyk

That other gem does some exception rewriting, and this one depends on the ActiveRecord::TransactionIsolationConflict exception, rather than the collection of other exceptions it wraps: https://github.com/qertoip/transaction_retry/blob/0cd0491a5ef2a8e1864522bb2760536da039cb55/lib/transaction_retry/active_record/base.rb#L33

nevinera avatar Apr 16 '19 12:04 nevinera