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
64
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Week 6
Week 6 Slides for UW Advanced Rails
Ben Woodall
May 07, 2015
More Decks by Ben Woodall
See All by Ben Woodall
UW Advanced Rails Week 9
benwoodall
0
50
UW Advanced Rails Week 8
benwoodall
0
61
UW Advanced Rails Week 7
benwoodall
0
57
UW Advanced Rails Week 5
benwoodall
0
70
UW Advanced Rails Week 4
benwoodall
0
80
UW Advanced Rails Week 3
benwoodall
0
80
UW Advanced Rails Week 2
benwoodall
0
220
UW Advanced Rails Week 1
benwoodall
0
110
A Bit More Git
benwoodall
1
5.1k
Other Decks in Programming
See All in Programming
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
170
ルールを書いて終わらせないハーネスエンジニアリング
yug1224
4
1.8k
Hatena Engineer Seminar #37「言語モデルの活用に関する研究」
slashnephy
0
550
Claude Opus 4.6以後の受託開発エンジニアの変化(Claude Code開発ノウハウ大公開スペシャルbyクラスメソッド)
iidatakuma
1
860
20260722_microCMSで考える、AI時代のコンテンツ運用設計
yosh1
0
100
関数型プログラミングのメリットって何だろう?
wanko_it
0
190
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
130
ビデオ通話が繋がる0.2秒で何が起きているのか
supurazako
2
150
AIが無かった頃の素敵な出会いの話
codmoninc
1
230
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
180
SREの積み重ねがAI駆動開発のガードレールになった ― 7つの実践/SRE Guardrails The 7
tomoyakitaura
8
5.5k
初めてのKubernetes 本番運用でハマった話
oku053
0
130
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Product Roadmaps are Hard
iamctodd
55
12k
Designing Powerful Visuals for Engaging Learning
tmiket
1
460
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
320
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Building Applications with DynamoDB
mza
96
7.1k
The Cult of Friendly URLs
andyhume
79
7k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
910
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