-
Notifications
You must be signed in to change notification settings - Fork 0
18.06.21
chy edited this page Jul 31, 2018
·
1 revision
mysql -h ์๋ฒ์ฃผ์ -u ์์ด๋ -p ํจ์ค์๋show processlist;show index from #table;-
id: ์คํ ์์ -
select_type: select type -
table: ์ฌ์ฉ๋ table -
type: join type-
system: ํ ์ด๋ธ์ ๋จ ํ๋์ ํ๋ง ์กด์ฌ -
const: unique key์ ์์๋ฅผ ๋น๊ตํ ๋ -
ref: ์ด์ ํ ์ด๋ธ๊ณผ์ ์กฐ์ธ์ ์ฌ์ฉ๋ ๋งค์น๋๋ ์ธ๋ฑ์ค์ ๋ชจ๋ ํ์ด ์ด ํ ์ด๋ธ์์ ์ฝํ์ง ๋ -
range: ์ธ๋ฑ์ค๋ฅผ ์ด์ฉํ์ฌ ์ฃผ์ด์ง ๋ฒ์ ๋ด์ ํ๋ค๋ง ์ถ์ถ -
index: ์ธ๋ฑ์ค๊ฐ ์ค์บ -
ALL: ํ ์ค์บ
-
-
possible_keys: ์ฌ์ฉ๊ฐ๋ฅํ index -
key: ์ค์ ์ฌ์ฉํ index -
key_len: ์ฌ์ฉํ ์ธ๋ฑ์ค์ ๊ธธ์ด -
ref: ํ์ ์ถ์ถํ๋๋ฐ ์ฌ์ฉ๋ ์ปฌ๋ฆผ์ด๋ ์์๊ฐ -
rows: ์์๋๋ ๊ฒ์ํด์ผํ ํ์ -
Extra: ์ถ๊ฐ ์ ๋ณด-
Using filesort: ์ถ๊ฐ์ ์ธ ์ ๋ ฌ ํ์ -
range checked for each record: ๋ง๋ ํ index๊ฐ ์์ -
Using index: table์ด ์๋ index tree์์ ์ถ์ถ -
Using temporary: ์์ ํ ์ด๋ธ ์ฌ์ฉ
-
select *
from
A left outer join B on A.id = B.id
where B.id is null