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
Sheets API使ってみた
toshi0383
2
140
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
400
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
200
Goのエラースタックトレースの歴史と今後
sonatard
9
1.7k
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
560
Kotlin Multiplatform at Stable and Beyond (Android Makers 2024)
zsmb
0
400
Going beyond Apache Parquet's default settings
xhochy
0
120
雑に思考を整理する技術と効能
konifar
61
30k
Tailwind CSSを本気でカスタマイズする方法
fsubal
14
5.4k
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
27
8.4k
Netty Chicago Java User Group 2024-04-17
sullis
0
190
使ってみよう Azure AI Document Intelligence
kosmosebi
2
350
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
242
1.2M
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
RailsConf 2023
tenderlove
7
550
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
63
14k
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
Navigating Team Friction
lara
179
13k
Fantastic passwords and where to find them - at NoRuKo
philnash
38
2.5k
Writing Fast Ruby
sferik
622
60k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
17
1.6k
The Mythical Team-Month
searls
216
42k
Design by the Numbers
sachag
274
18k
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