Tips for Writing Fast Rails: Part 2 - The Lean Software Boutique
15-Nov-2018 2060
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 #Writing #Rails: #Software #Boutique https://rubyonrails.ba/link/tips-for-writing-fast-rails-part-2-the-lean-software-boutique