File: partition_max_parts_hash_innodb.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (127 lines) | stat: -rw-r--r-- 1,912 bytes parent folder | download
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
call mtr.add_suppression("A long semaphore wait");
call mtr.add_suppression("Could not increase number of max_open_files");
create table t2 (a int not null, primary key(a)) engine='InnoDB'
partition by hash (a) partitions 8192;
show create table t2;
Table	Create Table
t2	CREATE TABLE `t2` (
  `a` int NOT NULL,
  PRIMARY KEY (`a`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
/*!50100 PARTITION BY HASH (`a`)
PARTITIONS 8192 */
65535 inserts;
select count(*) from t2;
count(*)
65535
select count(*) from t2 partition (p0);
count(*)
7
select count(*) from t2 partition (p10);
count(*)
8
select count(*) from t2 partition (p100);
count(*)
8
select count(*) from t2 partition (p1000);
count(*)
8
select count(*) from t2 partition (p4000);
count(*)
8
select count(*) from t2 partition (p8000);
count(*)
8
select count(*) from t2 partition (p8191);
count(*)
8
select * from t2 partition (p0);
a
8192
16384
24576
32768
40960
49152
57344
select * from t2 partition (p10);
a
10
8202
16394
24586
32778
40970
49162
57354
select * from t2 partition (p100);
a
100
8292
16484
24676
32868
41060
49252
57444
select * from t2 partition (p1000);
a
1000
9192
17384
25576
33768
41960
50152
58344
select * from t2 partition (p4000);
a
4000
12192
20384
28576
36768
44960
53152
61344
select * from t2 partition (p8000);
a
8000
16192
24384
32576
40768
48960
57152
65344
select * from t2 partition (p8191);
a
8191
16383
24575
32767
40959
49151
57343
65535
delete from t2 partition (p8191);
select * from t2 partition (p8191);
a
insert into t2 partition (p8191) values (8191), (65535);
select * from t2 partition (p8191);
a
8191
65535
update t2 partition (p8191) set a=16383 where a= 8191;
select * from t2 partition (p8191);
a
16383
65535
load data infile 'MYSQL_TMP_DIR/data01' into table t2 partition (p8191) fields terminated by ',';
select * from t2 partition (p8191);
a
8191
16383
57343
65535
drop table t2;