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
450
私の選ぶ開発環境: Raycast, Vivaldi, Warp, Emacsを活用したワークフロー
ug
0
1.8k
2週間に一度からリリースを日々の当たり前にするエンジニアリングマネジメント
ug
0
1.8k
レガシーフレームワークからの移行
ug
0
560
データ指向プログラミング(仮)のススメ
ug
1
590
プログラミング言語に依存しない、質の高いコードを書く技術
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
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
330
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
140
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
setup-vp GitLab対応の裏側
naokihaba
0
160
速習iPhone Duo対応
yuukiw00w
2
980
CodeRabbitの効果検証と過ごしてみた3ヶ月
armondando
0
220
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
370
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
3
4.3k
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
260
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
150
The Rails Doctrine Decade
koic
2
560
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
350
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
350
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
310
The Mindset for Success: Future Career Progression
greggifford
PRO
0
530
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Fireside Chat
paigeccino
43
4.1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
880
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
620
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
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 >;