@@ -17,7 +17,7 @@ CREATE LOGFILE GROUP lg_1
17
17
CREATE TABLESPACE ts_1
18
18
ADD DATAFILE 'data_1.dat'
19
19
USE LOGFILE GROUP lg_1
20
- INITIAL_SIZE 4M
20
+ INITIAL_SIZE 16M
21
21
ENGINE NDB;
22
22
23
23
create table t1(id int NOT NULL PRIMARY KEY, data char(8)) engine=ndb;
@@ -35,16 +35,16 @@ load data local infile 'suite/ndb/data/table_data10000.dat' into table t6 fields
35
35
36
36
select count(1) as t1_part_count from information_schema.partitions where table_schema='test' and table_name='t1';
37
37
t1_part_count
38
- 2
38
+ 8
39
39
select count(1) as t2_part_count from information_schema.partitions where table_schema='test' and table_name='t2';
40
40
t2_part_count
41
- 2
41
+ 8
42
42
select @init_t5_part_count:= count(1) as t5_part_count from information_schema.partitions where table_schema='test' and table_name='t5';
43
43
t5_part_count
44
- 4
44
+ 8
45
45
select count(1) as t6_part_count from information_schema.partitions where table_schema='test' and table_name='t6';
46
46
t6_part_count
47
- 2
47
+ 8
48
48
49
49
connection default;
50
50
explain
@@ -53,8 +53,8 @@ explain
53
53
on (t6.val = t1.id)
54
54
where t6.val < 25;
55
55
id select_type table type possible_keys key key_len ref rows Extra
56
- 1 SIMPLE t6 range val val 5 NULL 25 Parent of 2 pushed join@1; Using where with pushed condition; Using MRR
57
- 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t6.val 1 Child of 't6' in pushed join@1
56
+ 1 SIMPLE t6 range val val 5 NULL ### Parent of 2 pushed join@1; Using where with pushed condition; Using MRR
57
+ 1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t6.val ### Child of 't6' in pushed join@1
58
58
59
59
Starting engines...
60
60
connection j1;
@@ -75,17 +75,17 @@ connection ddl;
75
75
76
76
77
77
## Check details of t5 partitioning
78
- FragmentCount 4
79
- HashMap DEFAULT-HASHMAP-3840-4
78
+ FragmentCount 8
79
+ HashMap DEFAULT-HASHMAP-3840-8
80
80
81
81
82
82
## Check details of t6 partitioning
83
- FragmentCount 2
84
- HashMap DEFAULT-HASHMAP-3840-2
85
- FragmentCount 2
86
- HashMap DEFAULT-HASHMAP-3840-2
87
- FragmentCount 2
88
- HashMap DEFAULT-HASHMAP-3840-2
83
+ FragmentCount 8
84
+ HashMap DEFAULT-HASHMAP-3840-8
85
+ FragmentCount 8
86
+ HashMap DEFAULT-HASHMAP-3840-8
87
+ FragmentCount 8
88
+ HashMap DEFAULT-HASHMAP-3840-8
89
89
90
90
91
91
## Create nodegroup for "new" nodes
@@ -113,7 +113,7 @@ Warning 1287 'ONLINE' is deprecated and will be removed in a future release. Ple
113
113
alter online table t2 reorganize partition;
114
114
Warnings:
115
115
Warning 1287 'ONLINE' is deprecated and will be removed in a future release. Please use ALGORITHM=INPLACE instead
116
- alter online table t5 max_rows=150000000 ;
116
+ alter online table t5 max_rows=300000000 ;
117
117
Warnings:
118
118
Warning 1287 'ONLINE' is deprecated and will be removed in a future release. Please use ALGORITHM=INPLACE instead
119
119
alter online table t6 reorganize partition;
@@ -124,26 +124,26 @@ Warnings:
124
124
Warning 1287 'ONLINE' is deprecated and will be removed in a future release. Please use ALGORITHM=INPLACE instead
125
125
select count(1) as t1_part_count from information_schema.partitions where table_schema='test' and table_name='t1';
126
126
t1_part_count
127
- 4
127
+ 16
128
128
select count(1) as t2_part_count from information_schema.partitions where table_schema='test' and table_name='t2';
129
129
t2_part_count
130
- 4
130
+ 16
131
131
select count(1) as t3_part_count from information_schema.partitions where table_schema='test' and table_name='t3';
132
132
t3_part_count
133
- 4
133
+ 16
134
134
select count(1) as t4_part_count from information_schema.partitions where table_schema='test' and table_name='t4';
135
135
t4_part_count
136
- 4
136
+ 16
137
137
select @reorg_t5_part_count:= count(1) as t5_part_count from information_schema.partitions where table_schema='test' and table_name='t5';
138
138
t5_part_count
139
- 8
139
+ 16
140
140
select count(1) as t6_part_count from information_schema.partitions where table_schema='test' and table_name='t6';
141
141
t6_part_count
142
- 4
142
+ 16
143
143
144
144
## Check details of t5 partitioning
145
- FragmentCount 8
146
- HashMap DEFAULT-HASHMAP-3840-8
145
+ FragmentCount 16
146
+ HashMap DEFAULT-HASHMAP-3840-16
147
147
148
148
149
149
@@ -156,17 +156,17 @@ count(0)
156
156
1000
157
157
158
158
## Check details of t6 partitioning
159
- FragmentCount 4
160
- HashMap DEFAULT-HASHMAP-3840-4
161
- FragmentCount 4
162
- HashMap DEFAULT-HASHMAP-3840-4
163
- FragmentCount 4
164
- HashMap DEFAULT-HASHMAP-3840-4
159
+ FragmentCount 16
160
+ HashMap DEFAULT-HASHMAP-3840-16
161
+ FragmentCount 16
162
+ HashMap DEFAULT-HASHMAP-3840-16
163
+ FragmentCount 16
164
+ HashMap DEFAULT-HASHMAP-3840-16
165
165
166
166
167
- HashMap DEFAULT-HASHMAP-3840-4
168
- HashMap DEFAULT-HASHMAP-3840-4
169
- HashMap DEFAULT-HASHMAP-3840-4
167
+ HashMap DEFAULT-HASHMAP-3840-16
168
+ HashMap DEFAULT-HASHMAP-3840-16
169
+ HashMap DEFAULT-HASHMAP-3840-16
170
170
171
171
172
172
drop table t1,t2,t3,t4,t5,t6;
0 commit comments