Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
New in 4.2: AdequateRecord
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
alassek
February 12, 2015
Programming
36
0
Share
New in 4.2: AdequateRecord
An overview of the query caching added to Rails 4.2
alassek
February 12, 2015
More Decks by alassek
See All by alassek
Introducing the Rails Attribute API
alassek
0
25
Spelunking through Arel
alassek
0
18
Other Decks in Programming
See All in Programming
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
290
ふつうのFeature Flag実践入門
irof
7
3.5k
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
190
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.3k
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
220
GitHub Copilot CLIのいいところ
htkym
2
1.3k
JavaDoc 再入門
nagise
0
270
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
3
1.8k
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.5k
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
New "Type" system on PicoRuby
pocke
1
450
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
2
1.6k
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
Balancing Empowerment & Direction
lara
6
1.1k
Bash Introduction
62gerente
615
210k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
320
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
410
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
150
Facilitating Awesome Meetings
lara
57
6.9k
Test your architecture with Archunit
thirion
1
2.3k
Agile that works and the tools we love
rasmusluckow
331
21k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
770
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
160
SEO for Brand Visibility & Recognition
aleyda
0
4.6k
Transcript
New in Rails 4.2: AdequateRecord
Who I am Lead Developer @ Lyconic @alassek
http://tenderlovemaking.com/2014/02/19/adequaterecord-pro-like-activerecord.html
Post.find(10) SELECT * FROM posts WHERE id = 10
SELECT * FROM posts WHERE id = 10 SELECT *
FROM posts WHERE id = 12 SELECT * FROM posts WHERE id = 22 SELECT * FROM posts WHERE id = 33
SELECT * FROM posts WHERE id = ? [id, 10]
SELECT * FROM posts WHERE id = ? [id, 12] SELECT * FROM posts WHERE id = ? [id, 22] SELECT * FROM posts WHERE id = ? [id, 33]
None
SELECT * FROM posts WHERE id = ? [id, 10]
SELECT * FROM posts WHERE id = ? [id, 12] SELECT * FROM posts WHERE id = ? [id, 22] SELECT * FROM posts WHERE id = ? [id, 33] AdequateRecord Cache
Post.find(id) Post.find_by_name(name) Post.find_by(name: name) post.comments Post.find(1, 2, 3) Post.find([1,2]) Post.find_by('published_at
< ?’, 2.weeks.ago) Cached: NOT Cached: