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

15-Nov-2018 2018
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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle