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
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SQLの実行計画とは / What is an SQL execution plan
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
K H
September 28, 2024
33
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SQLの実行計画とは / What is an SQL execution plan
K H
September 28, 2024
More Decks by K H
See All by K H
ファシリテーションテクニック / facilitation technic
kengohayata
0
22
RailsのQueryオブジェクトとは / What is a Query Object in Rails?
kengohayata
0
35
Ruby Silverを取得してみた / get ruby silver
kengohayata
0
30
Ruby と Rails のざっくりとした Cookie の扱い方 / use cookie for ruby and rails
kengohayata
0
66
【LT会】進数を学ぼう! / study base number
kengohayata
0
26
【LT会】睡眠テクニックを身につける / study sleep technique
kengohayata
0
76
エンジニア座談会告知
kengohayata
0
78
未経験転職エンジニア座談会資料
kengohayata
0
70
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How to make the Groovebox
asonas
2
2.4k
Abbi's Birthday
coloredviolet
3
9.8k
sira's awesome portfolio website redesign presentation
elsirapls
0
410
RailsConf 2023
tenderlove
30
1.5k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
260
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
570
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
450
Building the Perfect Custom Keyboard
takai
2
870
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
730
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
490
Transcript
SQLの実行計画とは
・意図したSQLのパフォーマンスが出せるように、 チューニングする目的で利用する ・特にインデックスが適切に使われているか、 フルテーブルスキャンをしているか特定できる SQLの実行計画とは? ・名前の通りSQLを実行するための計画
SQLの実行計画の読み方 ※Rails(MySQL)のexplainメソッドで実行) ref:MySQL公式ドキュメント(https://dev.mysql.com/doc/refman/8.0/ja/explain-output.html)
確認したいクエリの前に EXPLAIN を追加 ActiveRecord::Relationオブジェクトでexplainメソッドを実行する ・MySQL ・Rails SQLの実行計画の出力方法(MySQL、Rails)
パフォーマンスチューニングするぞ