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
Week 6
Search
Ben Woodall
May 07, 2015
Programming
0
44
Week 6
Week 6 Slides for UW Advanced Rails
Ben Woodall
May 07, 2015
Tweet
Share
More Decks by Ben Woodall
See All by Ben Woodall
UW Advanced Rails Week 9
benwoodall
0
37
UW Advanced Rails Week 8
benwoodall
0
46
UW Advanced Rails Week 7
benwoodall
0
43
UW Advanced Rails Week 5
benwoodall
0
52
UW Advanced Rails Week 4
benwoodall
0
64
UW Advanced Rails Week 3
benwoodall
0
65
UW Advanced Rails Week 2
benwoodall
0
160
UW Advanced Rails Week 1
benwoodall
0
94
A Bit More Git
benwoodall
1
5.1k
Other Decks in Programming
See All in Programming
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
1.1k
明示と暗黙 ー PHPとGoの インターフェイスの違いを知る
shimabox
2
620
ふつうの技術スタックでアート作品を作ってみる
akira888
1
1.3k
Android 16KBページサイズ対応をはじめからていねいに
mine2424
0
440
初学者でも今すぐできる、Claude Codeの生産性を10倍上げるTips
s4yuba
16
13k
ニーリーにおけるプロダクトエンジニア
nealle
0
950
Modern Angular with Signals and Signal Store:New Rules for Your Architecture @enterJS Advanced Angular Day 2025
manfredsteyer
PRO
0
270
20250708_JAWS_opscdk
takuyay0ne
2
130
はじめてのWeb API体験 ー 飲食店検索アプリを作ろうー
akinko_0915
0
140
Quand Symfony, ApiPlatform, OpenAI et LangChain s'allient pour exploiter vos PDF : de la théorie à la production…
ahmedbhs123
0
220
AI Agent 時代のソフトウェア開発を支える AWS Cloud Development Kit (CDK)
konokenj
6
800
AWS Summit Japan 2024と2025の比較/はじめてのKiro、今あなたは岐路に立つ
satoshi256kbyte
0
120
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
337
57k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
54k
Testing 201, or: Great Expectations
jmmastey
43
7.6k
The Invisible Side of Design
smashingmag
301
51k
Become a Pro
speakerdeck
PRO
29
5.4k
Facilitating Awesome Meetings
lara
54
6.5k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Practical Orchestrator
shlominoach
189
11k
A better future with KSS
kneath
238
17k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Transcript
Questions from Week 5? 1
Week 6: Performance and Optimization Spring 2015 2
Why do we care? No one wants a slow website!
Always Be Iterating! 3
Places to Check Caching ActiveRecord Optimization Gems 4
What is caching? 5
What is caching? Storing data in a single place to
avoid unneeded requests 6
What is caching? There are only two hard things in
Computer Science: cache invalidation and naming things. -- Phil Karlton 7
Fragment Caching 8 config/environments/development.rb
Fragment Caching 9 app/views/links/show.html.erb
Fragment Caching 10 app/views/links/show.html.erb
Fragment Caching 11 app/views/dashboards/all.json.jbuilder
Optimizing with Active Record Includes Indexes 12
Includes Active Record ensures that all of the specified associations
are loaded using the minimum possible number of queries. 13
Indexing A database index is a data structure that improves
the speed of operations on a database table 14
Third Party Help - Gems 15
Third Party Help - Gems rack-mini-profiler bullet brakeman rails_best_practices rubocop
rubycritic 16
rack-mini-profiler 17 Gemfile config/initializers/rack_profiler.rb
rack-mini-profiler 18 Gemfile
bullet 19 Gemfile config/initializers/bullet.rb
bullet 20 app/controllers/dashboards_controller.rb
bullet 21
brakeman 22 Gemfile
rails_best_practices 23 Gemfile
rubocop 24 Gemfile
rubycritic 25 Gemfile