Catch Ruby errors before your users do. Monitor Ruby production errors in real-time and debug them in minutes, before users notice. Our open source Ruby SDK works with Rails, Sinatra, and more. Use this link and get one month free!

RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Iterating over large tables in MySQL using ActiveRecord

https://medium.com/@rajagopals/activerecord-on-mysql-iterating-over-large-tables-with-conditions-453bd8761c8b . In a high volume analytics system, tables with millions of records are quite common and iterating over the full table or a subset of these tables becomes often necessary  — whether it’s to perform computations, run a migration, or create parallelized background jobs on the records. It becomes important to write efficient code for iterations because there is often an order of magnitude difference between a good and not-so-good approac

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in