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
40
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
Transcript
9 slides
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:
More Decks by alassek
See All by alassek
Introducing the Rails Attribute API
alassek
0
32
Spelunking through Arel
alassek
0
22
Other Decks in Programming
See All in Programming
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
210
protojson における文字化けの扱い
kazuki1023
0
460
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
510
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
420
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
LLM 101
dalinaum
0
540
SONY CISC-NEWS NWS-1750 + NWB-225 ハードウェアメンテとフレームバッファカラー対応 / KOF2026
tsutsui
0
130
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
AppFunctionsの内部実装を紐解く
hiroaki404
0
120
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
110
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
790
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Utilizing Notion as your number one productivity tool
mfonobong
4
650
Building Adaptive Systems
keathley
44
3.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850