Slide 41
Slide 41 text
Large datasets and L
I
M
I
T
You have a large dataset, and you want to paginate
Technically, without an ORDER BY, LIMIT is "non-deterministic", so we really
should have an ORDER BY
A
L
T
E
R T
A
B
L
E c
o
m
m
e
n
t A
D
D I
N
D
E
X i
d
x
_
c
r
e
a
t
e
d (
c
r
e
a
t
e
d
)
;
E
X
P
L
A
I
N S
E
L
E
C
T * F
R
O
M c
o
m
m
e
n
t O
R
D
E
R B
Y c
r
e
a
t
e
d L
I
M
I
T 2
5
E
X
P
L
A
I
N S
E
L
E
C
T * F
R
O
M c
o
m
m
e
n
t O
R
D
E
R B
Y c
r
e
a
t
e
d L
I
M
I
T 2
0
0
,
2
5
E
X
P
L
A
I
N S
E
L
E
C
T * F
R
O
M c
o
m
m
e
n
t O
R
D
E
R B
Y c
r
e
a
t
e
d L
I
M
I
T 2
0
0
0
0
,
2
5