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
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
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
39
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
Transcript
5 slides
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)
パフォーマンスチューニングするぞ
More Decks by K H
See All by K H
ファシリテーションテクニック / facilitation technic
kengohayata
0
28
RailsのQueryオブジェクトとは / What is a Query Object in Rails?
kengohayata
0
43
Ruby Silverを取得してみた / get ruby silver
kengohayata
0
39
Ruby と Rails のざっくりとした Cookie の扱い方 / use cookie for ruby and rails
kengohayata
0
70
【LT会】進数を学ぼう! / study base number
kengohayata
0
36
【LT会】睡眠テクニックを身につける / study sleep technique
kengohayata
0
84
エンジニア座談会告知
kengohayata
0
83
未経験転職エンジニア座談会資料
kengohayata
0
77
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Color Theory Basics | Prateek | Gurzu
gurzu
1
530
The Art of Programming - Codeland 2020
erikaheidi
57
15k
How to Think Like a Performance Engineer
csswizardry
28
3k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
A Soul's Torment
seathinner
9
4k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
890
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
570
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
BBQ
matthewcrist
90
10k