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
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
0
23
SQLの実行計画とは / What is an SQL execution plan
K H
September 28, 2024
Tweet
Share
More Decks by K H
See All by K H
ファシリテーションテクニック / facilitation technic
kengohayata
0
12
RailsのQueryオブジェクトとは / What is a Query Object in Rails?
kengohayata
0
24
Ruby Silverを取得してみた / get ruby silver
kengohayata
0
20
Ruby と Rails のざっくりとした Cookie の扱い方 / use cookie for ruby and rails
kengohayata
0
55
【LT会】進数を学ぼう! / study base number
kengohayata
0
16
【LT会】睡眠テクニックを身につける / study sleep technique
kengohayata
0
64
エンジニア座談会告知
kengohayata
0
63
未経験転職エンジニア座談会資料
kengohayata
0
60
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
100
Paper Plane (Part 1)
katiecoart
PRO
0
4.2k
Six Lessons from altMBA
skipperchong
29
4.1k
Ethics towards AI in product and experience design
skipperchong
2
190
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
270
Designing for Timeless Needs
cassininazir
0
130
Chasing Engaging Ingredients in Design
codingconduct
0
110
The browser strikes back
jonoalderson
0
370
The Curious Case for Waylosing
cassininazir
0
240
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
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)
パフォーマンスチューニングするぞ