You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
droptable if exists t0,t1;
createtablet1 (id int key auto_increment, b int, index idx1 (b));
insert into t1 () values (), (), (), (), (), (), (), ();
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1 limit34464;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1;
insert into t1 (b) select b from t1 limit200000;
update t1 set b = rand() *100000;
createtablet0 (id int key, b int, index idx1 (b));
insert into t0 select*from t1 order by id limit100000;
update t0 set b = rand() *100000;
split table t1 index idx1 between (0) and (100000) regions 10;
analyze table t0,t1;
set @@tidb_store_batch_size=0;
explain analyze select/*+ INL_JOIN(t0,t1) */ t0.*from t0 join t1 wheret0.id<=50000andt0.b=t1.b;
Pay attention to the execution information of IndexReader_11(Probe) executor, it send too many cop task, since the total index region of table t1's index idx1 is 10.
Enhancement
Related issue: #54160 #54840
1. Minimal reproduce step
Pay attention to the execution information of
IndexReader_11(Probe)
executor, it send too many cop task, since the total index region of tablet1
's indexidx1
is 10.And I try to increase
tidb_max_chunk_size
, but this has no affected, this is unexpected, it should work and reduce the number of cop task.The text was updated successfully, but these errors were encountered: