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
Week 6
Search
Ben Woodall
May 07, 2015
Programming
79
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
69
UW Advanced Rails Week 8
benwoodall
0
72
UW Advanced Rails Week 7
benwoodall
0
73
UW Advanced Rails Week 5
benwoodall
0
82
UW Advanced Rails Week 4
benwoodall
0
87
UW Advanced Rails Week 3
benwoodall
0
93
UW Advanced Rails Week 2
benwoodall
0
250
UW Advanced Rails Week 1
benwoodall
0
130
A Bit More Git
benwoodall
1
5.1k
Other Decks in Programming
See All in Programming
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
420
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
310
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
800
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
130
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
180
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
330
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.8k
Moscow Python Meetup №112. Как поселить ИИ агентов в event driven архитектуре
moscowdjango
PRO
0
110
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
AI-Powered Domain-Driven Design
ziobrando
0
410
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
240
Featured
See All Featured
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.3k
How STYLIGHT went responsive
nonsquared
100
6.4k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
560
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
A Modern Web Designer's Workflow
chriscoyier
699
190k
The Cost Of JavaScript in 2023
addyosmani
56
10k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
550
Unsuck your backbone
ammeep
672
58k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
48k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
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