File: rnd_pos.result

package info (click to toggle)
mariadb-10.5 1%3A10.5.23-0%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 712,240 kB
  • sloc: ansic: 2,158,658; cpp: 1,843,101; asm: 297,745; perl: 59,967; sh: 53,869; pascal: 38,348; java: 33,919; yacc: 19,639; python: 11,119; xml: 10,126; sql: 10,027; ruby: 8,544; makefile: 6,343; cs: 2,866; lex: 1,205; javascript: 1,037; objc: 80; tcl: 73; awk: 46; php: 22; sed: 16
file content (56 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
create table t1(c1 int not null, c2 double not null, c3 char(255) not null) engine=archive;
insert t1 select seq, seq+0.7, concat('row with c1 = ', seq) from seq_1_to_10;
explain partitions select c1,c3 from t1 order by c2;
id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
1	SIMPLE	t1	NULL	ALL	NULL	NULL	NULL	NULL	10	Using filesort
set max_length_for_sort_data = 4;
explain partitions select c1,c3 from t1 order by c2;
id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
1	SIMPLE	t1	NULL	ALL	NULL	NULL	NULL	NULL	10	Using temporary; Using filesort
flush status;
select c1,c3 from t1 order by c2;
c1	c3
1	row with c1 = 1
2	row with c1 = 2
3	row with c1 = 3
4	row with c1 = 4
5	row with c1 = 5
6	row with c1 = 6
7	row with c1 = 7
8	row with c1 = 8
9	row with c1 = 9
10	row with c1 = 10
set max_length_for_sort_data = default;
show status where variable_name like '%tmp%' and value != 0;
Variable_name	Value
Created_tmp_tables	1
Handler_tmp_write	10
Rows_tmp_read	20
alter table t1 partition by hash (c1) partitions 3;
explain partitions select c1,c3 from t1 order by c2;
id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
1	SIMPLE	t1	p0,p1,p2	ALL	NULL	NULL	NULL	NULL	10	Using filesort
set max_length_for_sort_data = 4;
explain partitions select c1,c3 from t1 order by c2;
id	select_type	table	partitions	type	possible_keys	key	key_len	ref	rows	Extra
1	SIMPLE	t1	p0,p1,p2	ALL	NULL	NULL	NULL	NULL	10	Using temporary; Using filesort
flush status;
select c1,c3 from t1 order by c2;
c1	c3
1	row with c1 = 1
2	row with c1 = 2
3	row with c1 = 3
4	row with c1 = 4
5	row with c1 = 5
6	row with c1 = 6
7	row with c1 = 7
8	row with c1 = 8
9	row with c1 = 9
10	row with c1 = 10
set max_length_for_sort_data = default;
show status where variable_name like '%tmp%' and value != 0;
Variable_name	Value
Created_tmp_tables	1
Handler_tmp_write	10
Rows_tmp_read	20
drop table t1;