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
54
0
Share
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
47
UW Advanced Rails Week 8
benwoodall
0
54
UW Advanced Rails Week 7
benwoodall
0
51
UW Advanced Rails Week 5
benwoodall
0
61
UW Advanced Rails Week 4
benwoodall
0
74
UW Advanced Rails Week 3
benwoodall
0
74
UW Advanced Rails Week 2
benwoodall
0
200
UW Advanced Rails Week 1
benwoodall
0
100
A Bit More Git
benwoodall
1
5.1k
Other Decks in Programming
See All in Programming
Agentic Elixir
whatyouhide
0
440
書き換えて学ぶTemporal #fukts
pirosikick
2
350
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
170
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
310
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
2.8k
空間オーディオの活用
objectiveaudio
0
130
HTML-Aware ERB: The Path to Reactive Rendering @ RubyKaigi 2026, Hakodate, Japan
marcoroth
0
640
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
250
Kingdom of the Machine
yui_knk
2
1.4k
Building on Bluesky's AT Protocol with Ruby
mackuba
0
100
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
500
ローカルLLMでどこまでコードが書けるか / How much code can be written on a local LLM
kishida
2
310
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
What does AI have to do with Human Rights?
axbom
PRO
1
2.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
340
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Statistics for Hackers
jakevdp
799
230k
Documentation Writing (for coders)
carmenintech
77
5.3k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
430
A Tale of Four Properties
chriscoyier
163
24k
It's Worth the Effort
3n
188
29k
Mind Mapping
helmedeiros
PRO
1
180
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