Tips for Writing Fast Rails: Part 2 - The Lean Software Boutique

Some time ago we wrote a couple of Tips for Writing Fast Rails. It was about time we wrote part two so here it is!In this article we will focus on the use of ActiveRecord::Calculations. To show the difference in execution time between doing the math in the database vs. in Ruby we will use benchmark-ips. Keep in mind that the table used in these examples has thousands of records, so the difference should be quite noticeable.
Tips for Writing Fast Rails: Part 2 - The Lean Software Boutique #ruby #rubydeveloper #rubyonrails https://www.rubyonrails.ba/single/tips-for-writing-fast-rails-part-2-the-lean-software-boutique

Nezir Zahirovic

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

related articles