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
37
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
24
RailsのQueryオブジェクトとは / What is a Query Object in Rails?
kengohayata
0
37
Ruby Silverを取得してみた / get ruby silver
kengohayata
0
35
Ruby と Rails のざっくりとした Cookie の扱い方 / use cookie for ruby and rails
kengohayata
0
68
【LT会】進数を学ぼう! / study base number
kengohayata
0
29
【LT会】睡眠テクニックを身につける / study sleep technique
kengohayata
0
78
エンジニア座談会告知
kengohayata
0
80
未経験転職エンジニア座談会資料
kengohayata
0
72
Featured
See All Featured
30 Presentation Tips
portentint
PRO
1
430
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
Typedesign – Prime Four
hannesfritz
42
3.2k
The agentic SEO stack - context over prompts
schlessera
0
970
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
How to Ace a Technical Interview
jacobian
280
24k
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)
パフォーマンスチューニングするぞ