Upgrade to Pro — share decks privately, control downloads, hide ads and more …

5分でわかるAdequateRecord

 5分でわかるAdequateRecord

#dena_rubykaigi01 LT資料

Tomohiro MITSUMUNE

October 31, 2014
Tweet

Transcript

  1. –Rails 4.2 Release Notes “Adequate Record is a set of

    refactorings that make Active Record find and find_by methods and some association queries upto 2x faster.”
  2. NG  Query Article.where(title:  ‘foobar’)            

       .where(user:  1)   ! Article.find(1,  2,  3)   ! Article.find_by  ‘published_at  <  ?’, 2.weeks.ago