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
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
23
Spelunking through Arel
alassek
0
18
Other Decks in Programming
See All in Programming
[RubyKaigi 2026] Require Hooks
palkan
1
310
「OSSがあるなら自作するな」は AI時代も正しいか ── Build vs Adopt の新しい判断基準
kumorn5s
7
2.6k
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
490
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
500
AI Agent と正しく分析するための環境作り
yoshyum
2
380
Programming with a DJ Controller — not vibe coding
m_seki
3
820
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
410
Kubernetesを使わない環境にもCloud Nativeなデプロイを実現する / Enabling Cloud Native deployments without the complexity of Kubernetes
linyows
3
380
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
350
Are We Really Coding 10× Faster with AI?
kohzas
0
150
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1.1k
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
28
20k
Featured
See All Featured
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
180
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
300
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
300
Deep Space Network (abreviated)
tonyrice
0
130
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
30 Presentation Tips
portentint
PRO
1
290
Designing for Performance
lara
611
70k
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: