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
速いWebフレームワークを作る
yusukebe
5
1.7k
デザイナーが Androidエンジニアに 挑戦してみた
874wokiite
0
550
Flutter with Dart MCP: All You Need - 박제창 2025 I/O Extended Busan
itsmedreamwalker
0
150
個人軟體時代
ethanhuang13
0
330
概念モデル→論理モデルで気をつけていること
sunnyone
3
300
RDoc meets YARD
okuramasafumi
4
170
旅行プランAIエージェント開発の裏側
ippo012
2
930
個人開発で徳島大学生60%以上の心を掴んだアプリ、そして手放した話
akidon0000
1
150
Ruby Parser progress report 2025
yui_knk
1
460
そのAPI、誰のため? Androidライブラリ設計における利用者目線の実践テクニック
mkeeda
2
2.8k
Testing Trophyは叫ばない
toms74209200
0
890
AIでLINEスタンプを作ってみた
eycjur
1
230
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.1k
RailsConf 2023
tenderlove
30
1.2k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Balancing Empowerment & Direction
lara
3
620
How to Think Like a Performance Engineer
csswizardry
26
1.9k
Automating Front-end Workflow
addyosmani
1370
200k
4 Signs Your Business is Dying
shpigford
184
22k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Reflections from 52 weeks, 52 projects
jeffersonlam
352
21k
The Invisible Side of Design
smashingmag
301
51k
Testing 201, or: Great Expectations
jmmastey
45
7.7k
Optimizing for Happiness
mojombo
379
70k
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