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
38
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
19
Other Decks in Programming
See All in Programming
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
240
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
4
3.4k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
410
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
200
Getting Started with Vibe Coding
miccheng
0
190
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
630
AmebaブログはKMPから卒業します
kmars0605
0
340
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
310
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
100
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
160
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
140
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
The Limits of Empathy - UXLibs8
cassininazir
2
770
Prompt Engineering for Job Search
mfonobong
0
580
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
670
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
300
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
60k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
280
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
350
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
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: