Académique Documents
Professionnel Documents
Culture Documents
Dave Stoes
David.Stoes&oracle.co$ &Stoer
Slideshare.net/davestoes
Whats New in MySQL 5.6
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2
'he follo(ing is intended to o%tline o%r general prod%ct direction. )t is
intended for infor$ation p%rposes only, and $ay not *e incorporated
into any contract. )t is not a co$$it$ent to deliver any $aterial, code,
or f%nctionality, and sho%ld not *e relied %pon in $aing p%rchasing
decision. 'he develop$ent, release, and ti$ing of any feat%res or
f%nctionality descri*ed for Oracle+s prod%cts re$ains at the sole
discretion of Oracle.
Safe Harbor Statement
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3
Program Agenda
Develop$ent 0riorities
"%estions1
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2
MySQL 5.6 is GA
Co$plete Sol%tions
!yS"# Cl%ster
!yS"# 8or*ench
!yS"# Connectors
!yS"# 0roFy
$ra%!es 'n(estment in MySQL -omm#nity
A(ai!ab!e to down!oad and #se #nder the GPL
$ys9l.co$/do(nloads/
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 11
MySQL 5.6) 6est /e!ease ,(er
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 12
S!ide to %he%5 if a#dien%e is sti!! awa5e
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 13
MySQL 5.6) S%a!abi!ity
SSD Opti$iNations
K
2, = page siNes
K
.i*d files o%tside of !yS"# data dir
K
separate ta*lespaces for %ndo log
MySQL 5.6) 'nno&6
6etter Performan%e* S%a!abi!ity
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 1<
CREATE INDE!
DRO" INDE!
ADD,DRO" FOREI-N .E
Re$ame COL&MN
6%lly transactional
MySQL 5.6) 'nno&6
NoSQL Fey .a!#e A%%ess to 'nno&6
S%*9%ery Opti$iNations
,etter co$pleF 9%ery eFec%tion ti$es ever gro(ing data sets L,ig DataQM
6or Developers
K
5o $ore reK(riting legacy application or pacaged s%*9%eries into Roins
0erfor$ance
K
D,' 3 "%ery ?13 *ench$arB
K
4Fec%tion ti$e drops fro$ DA7S to seconds
MySQL 5.6) $"timi?er
S#bH#ery $"timi?ations
SELECT tit)e FROM *i)m WHERE *i)m'id IN
7SELECT *i)m'id FROM *i)m'acto+
-RO&" 0 *i)m'id HADIN- cou$t7E; 5 1F;;
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2<
#ate $aterialiNation
K Allo(s fast 4H0#A)5s for vie(s/s%*9%eries
K Avoid $aterialiNation (hen possi*le, faster *ail o%t
K A ey can *e generated for derived ta*les
4H0#A)5
K
)5S43', ;0DA'4, and D4#4'4
K
Str%ct%red 4H0#A)5 o%tp%t
Opti$iNer 'races
MySQL 5.6) $"timi?er
6etter &iagnosti%s
SET SESSION O"TIMI1ER'TRACE=?e$ab)ed=o$K;
SELECT 7SELECT 1 FROM t9 WHERE d = c;
AS RES< FROM tJ;
SELECT E FROM i$*o+matio$'sc#emaCO"TIMI1ER'TRACE;
>+eco+ds'estimatio$>L M
N
>database>L >test>/
>tab)e>L >t9>/
>+a$%e'a$a)3sis>L N
>tab)e'sca$>L N
>+eco+ds>L F/
>cost>L :CJ0O:
P/
>2ote$tia)'+a$%e'i$dices>L M
N
>i$de<>L >d>/
>usab)e>L t+ue/
>8e3'2a+ts>L M
>d>
Q
P
Q/
>best'co(e+i$%'i$de<'sca$>L N
>i$de<>L >d>/
>cost>L 1C:FOO/
>c#ose$>L t+ue
P/
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 32
-#stomer /eH#irements for /e"!i%ation
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3.
MySQL 5.6) 6est /e"!i%ation Deat#res ,(er
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 3/
S(itchover I ad$inistration
-
m3s4)+2)admi$ ;tility
.F perfor$ance gain
,etter transactional thro%ghp%t, less slave lag (hen co%pled (ith !'S
State$ents/Stages
'a*le locs
;sers/@osts/Acco%nts
5et(or )/O
New Features
4asier config%ration
K
Start %p defa%lts in $y.cnf
K
A%to t%ne
3ed%ced overhead
On *y defa%lt
Mm3s4)dQ
2e+*o+ma$ce'sc#ema=o$
0rovides %ser/session level stats on reso%rce %sage for Clo%dK*ased
cons%$ption/reporting/charge *ac
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2.
State$ents/Stages
K
8hat are $y $ost reso%rce intensive 9%eries1 8here do they spend ti$e1
;sers/@osts/Acco%nts
K
8hich application %sers, hosts, acco%nts are cons%$ing the $ost
reso%rces1
5et(or )/O
K
8hat is the net(or load lie1 @o( long do sessions idle1
S%$$aries
K
Aggregated statistics gro%ped *y thread, %ser, host, acco%nt or o*Rect
MySQL 5.6 Performan%e S%hema
Copyright 2013, Oracle and/or its affiliates. All rights reserved. 2/
!aRor overha%l of pass(ord handling
3eplication gro%ps
3efactoring
K
Data Dictionary in )nnoD,
K
Opti$iNer/0arser/0rotocol
)nnoD,
K
Opti$iNed for SSD
K
-)S
$ys9l.co$
K
!yS"# 0rod%cts, 4ditions, 'raining, Cons%lting
K
'CO calc%lator
K
C%sto$er %se cases and s%ccess stories
dev.$ys9l.co$
K
Do(nloads, Doc%$entation
K
6or%$s
K
0lanet!yS"#
eDelivery.oracle.co$
K
Do(nload and eval%ate all !yS"# prod%cts
Learn More
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .=
New MySQL 5.6 0raining
#earn a*o%t the (orld+s $ost pop%lar openKso%rce data*ase
oracle.co$/ed%cation/$ys9l
Learn MySQL Drom $ra%!e
:
4FpertKled training to help yo%
install, config%re, and
ad$inister !yS"# ../.
:
4Ftensive handsKon practices
g%ide yo% thro%gh each
concept
:
4Fplore realK(orld pro*le$s
and discover *est practices
as yo% (or (ith the tools
and techni9%es %sed *y
professional !yS"#
data*ase ad$inistrators
:
Content developed in
colla*oration (ith prod%ct
engineering.
:
Availa*le in traditional or virt%al classroo$
as (ell as selfKst%dy for$ats.
:
C%sto$ training sol%tions to $atch yo%r
organiNation+s specific *%siness needs
:
,aced *y Oracle ;niversity+s 344B
Satisfa%tion Program
Copyright 2013, Oracle and/or its affiliates. All rights reserved. .<
MySQL 5.6 -ertifi%ations
"%estions1
&e(e!o"er and &6A G#ide to
Whats New in MySQL 5.6
&a(id.Sto5esL$ra%!e.%om
Lsto5er
s!ideshare.netCda(esto5es