Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SQLの実行計画とは / What is an SQL execution plan
Search
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
23
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
63
エンジニア座談会告知
kengohayata
0
62
未経験転職エンジニア座談会資料
kengohayata
0
59
Featured
See All Featured
Test your architecture with Archunit
thirion
1
2.1k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
45
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Speed Design
sergeychernyshev
33
1.4k
Building Adaptive Systems
keathley
44
2.9k
A Soul's Torment
seathinner
1
2k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
680
Color Theory Basics | Prateek | Gurzu
gurzu
0
150
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
0
45
The SEO Collaboration Effect
kristinabergwall1
0
310
Navigating Weather and Climate Data
rabernat
0
53
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)
パフォーマンスチューニングするぞ