Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
New in 4.2: AdequateRecord
Search
alassek
February 12, 2015
Programming
36
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
29
Spelunking through Arel
alassek
0
18
Other Decks in Programming
See All in Programming
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2k
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
すこし踏み込む CancellationToken
htkym
2
1.7k
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
contenteditable と日本語入力に向き合う
colorful12
0
200
AWSに止められる覚悟してますか?
morizo_1984
2
530
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
Domain-Driven Transformation
hschwentner
2
2.3k
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
1
610
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Crafting Experiences
bethany
1
380
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
820
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
800
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
How to Talk to Developers About Accessibility
jct
2
580
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Ethics towards AI in product and experience design
skipperchong
2
430
It's Worth the Effort
3n
188
29k
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: