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
40
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
34
UW Advanced Rails Week 8
benwoodall
0
42
UW Advanced Rails Week 7
benwoodall
0
40
UW Advanced Rails Week 5
benwoodall
0
47
UW Advanced Rails Week 4
benwoodall
0
60
UW Advanced Rails Week 3
benwoodall
0
63
UW Advanced Rails Week 2
benwoodall
0
87
UW Advanced Rails Week 1
benwoodall
0
93
A Bit More Git
benwoodall
1
5k
Other Decks in Programming
See All in Programming
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
120
業務ツールとして使うPostman
msys75
0
100
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
670
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
300
PHPはいつから死んでいるかの調査
chiroruxx
2
420
SIMD Parallel Programming with the Vector API
josepaumard
0
230
Netty Chicago Java User Group 2024-04-17
sullis
0
200
Apache Hive 4 on Treasure Data
ryukobayashi
1
420
Hanami and htmx
bkuhlmann
0
220
使ってみよう Azure AI Document Intelligence
kosmosebi
2
360
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
870
初心者のためのRubyKaigi入門/RubyKaigi Introduction
a_matsuda
9
1.4k
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
504
110k
Fantastic passwords and where to find them - at NoRuKo
philnash
39
2.5k
Facilitating Awesome Meetings
lara
43
5.6k
Building Your Own Lightsaber
phodgson
100
5.7k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
Typedesign – Prime Four
hannesfritz
36
2.1k
Clear Off the Table
cherdarchuk
85
310k
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
Gamification - CAS2011
davidbonilla
77
4.6k
GitHub's CSS Performance
jonrohan
1025
450k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Documentation Writing (for coders)
carmenintech
61
4k
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