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
introduction about MySQL
Search
Arakaki Yuji
June 15, 2019
Programming
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
introduction about MySQL
MySQLの基本的な操作やRDBとしての設計・利用などはできるがMySQLのソフトウェアとしての特性をまだちゃんと理解していない方向けMySQLの特徴が伝わるように作りました。
Arakaki Yuji
June 15, 2019
More Decks by Arakaki Yuji
See All by Arakaki Yuji
家族・子育て重視/沖縄在住を維持しながらエンジニアとしてのキャリアをどのように育てていくか?
ug
0
460
私の選ぶ開発環境: Raycast, Vivaldi, Warp, Emacsを活用したワークフロー
ug
0
1.8k
2週間に一度からリリースを日々の当たり前にするエンジニアリングマネジメント
ug
0
1.8k
レガシーフレームワークからの移行
ug
0
570
データ指向プログラミング(仮)のススメ
ug
1
600
プログラミング言語に依存しない、質の高いコードを書く技術
ug
0
2.7k
Issues About frontend development
ug
0
3.4k
Azure web app is good
ug
0
550
技術基盤/SREの視点で取り組む、サービスの成長を継続し、加速させるためのPHPアプリケーション改善
ug
0
1.5k
Other Decks in Programming
See All in Programming
SODA - FACT BOOK(JP)
sodainc
1
40k
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
200
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
330
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
1.9k
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.3k
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
200
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
140
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
170
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1.6k
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.2k
AmebaブログはKMPから卒業します
kmars0605
0
340
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
190
Featured
See All Featured
The Curse of the Amulet
leimatthew05
3
17k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
How to train your dragon (web standard)
notwaldorf
96
6.9k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
Typedesign – Prime Four
hannesfritz
42
3.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Claude Code のすすめ
schroneko
67
230k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
360
Transcript
MySQL Payke
Goal u MySQL!RDBM MySQLNS!CHM @ ?O u 24%6=+,71='095:)7."=' MySQLNS
!CHDG JF! KP u MySQLQ+0;*$=*= BAInnoDB >I u TR L E03-&#=/-&+09=(&)8=<-& U
u MySQL u u
u
MySQL!& u +($*%() #0 u '+"1. = 1) # u
) # 1./ Linuxps%+# -, u SHOW PROCESSLIST %+# , u PostgreSQL %($*0 u '+"11. = 1$*
MySQL u
MySQL" u !#$$ u MySQL%+2 &1()0, u
/!#$$. -3'*. u InnoDB u MyISAM u Memory u MyRocks
u u
u
-!"61&#! u InnoDB%*/81&#! 321&#! -!"61&#! u -!"61&#!B$..)('0 '7-,&" :=
u 0 '&":= 391&#!5 394<0! +1!;
+)+! u (0+! +! u +)+! )&$#(0+! 6,
u +)+! 3 1:% " .(0 +! 1: *'+5 u (0+! 1:4 79228-/
)-/!/(& " u /(& ";< -79: u /(& ">?
u '*. #" 2=79: u ,"$5/(& " 6@10'*. ,+<3 )-/!/(& "=4 79: u #/%-/(& " 6@10#/%-/(& "A , +< ,"$5/(& ",+< 8)-/!/ (& "
u u READ UNCOMMITTED
u READ COMMITTED u REPEATABLE READ u SERIALIZABLE u MySQL u MVCC
!% %&-#" u !% % &-) % # u .0
&- $(/ %,' u %&-) #(/ 4 &-#" (SQL+*) u READ UNCOMMITTED u READ COMMITED u REPEATABLE READ u SERIALIZABLE
READ UNCOMMITED u &#% %)* (*035%)* (*, u &#%
$!6 4 u -./1+2 "'!
READ COMMITTED u ).1" #-17 ?E !+&) ).1" #-1FN
u ).1" #-1<FN!+&) K).1" #-1 7 u 5J0*/ MG u 8$'),1)2=@3 L(% H GCA u A).1" #-1@32;B).1" #-1 !+&) 64A< B>(%B!+&):9OIBDGCA
REPEATABLE READ u MySQL$& *%%),"!#(,/D+'* u READ UNCOMMITED FB
C u %),"!#(, I:- 2%),"!#(,= EI:21 8@ u ;>G u KH-7J 4A%),"!#(, KH5 -L3 0.2KH7J5 - < u InnoDB0.MVCC9 ;>?6
SERIALIZABLE u 80*/5B> u '-2#"$,2A467 '-2#"$,2=<:CF )2'+.(@ u E;
31&"?9 u % +!'1&"A4G6 D
MySQLW7BAX: MVCC u MultiVesion Concurrency Control[ u ;DTM,)(.*0&2*-"IC SF?I
u InnoDB98 u 7 \!R"JZ u 7 IC! &(+1/'26PY u 7 VU! &(+1/'26PY u &(+1/'26PY-36%$&26 >K EL u N-36%$&26>K;D&(+1/'26PY"HQ u -36%$&26<$#47ICVU&(+1/'26PY" ,)"@G]I u -36%$&26&(+1/'26=&(+1/'267": "5*$O
MySQL7'.-8: MVCC u " u 2 %3,.96 1
!& &(5$#+/ u )4 !& &(5$#0* u REPETABLE READ u READ COMMITTED
u u u u u
u u u
! u (# ) u $ #
u u %"( ) u #
!.) u ! u +*! u "! u -("!
u ! u "! "!0'"& ! u id124 u UPDATE users SET age = 30 WHERE id BETWEEN 2 AND 4 , $#' id=3& /%!
0(&A8 u *&')$0(& u 20(&%-(,0(&<3" u 20(	 7%-(,1@0(& ! u
1,2,4? 43 u (negative infinity 1] u (1 2] u (2 3] u (4 positive infinity] u *&')$0(&:=2positivie infinity0(& ! INSERT ).+/ 56 >;