Ruby exceptions are 4400 times faster than ActiveRecord::Base#create

Big thanks to Robert Pankowecki who created the original gist and to Piotr Szotkowski who provided even more data. The gist was originally created as part of our Fearless Refactoring: Rails Controllers bookwhere Ruby exceptions are suggested as one of the possible techniques of the controller communication with service objects.


Ruby exceptions are 4400 times faster than ActiveRecord::Base#create #ruby #rubydeveloper #rubyonrails #activerecord::base#create https://rubyonrails.ba/single/ruby-exceptions-are-4400-times-faster-than-activerecordbasecreate

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles