Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global sort ADD INDEX can adjust performance with tidb_ddl_reorg_worker_cnt #51272

Closed
Tracked by #50752
lance6716 opened this issue Feb 23, 2024 · 1 comment
Closed
Tracked by #50752

Comments

@lance6716
Copy link
Contributor

No description provided.

@lance6716 lance6716 changed the title ADD INDEX can run in 8c16g node and tidb_ddl_reorg_worker_cnt can adjust performance global sort ADD INDEX can adjust performance with tidb_ddl_reorg_worker_cnt Mar 1, 2024
@lance6716
Copy link
Contributor Author

closed by #51261

below are global sort metrics

worker_cnt = 4
img_v3_028i_3c5a13f6-eccb-4b80-ac39-97da972bc9bg

worker_cnt = 16
img_v3_028i_a5c29de0-125d-4fee-bc38-935e407e26cg

 CREATE TABLE `item` (
...
  `a` varchar(127) DEFAULT NULL,
  `b` json DEFAULT NULL,
...
  KEY `worker_cnt_4` ((cast(`b` as char(1000) array)),`a`),
  KEY `worker_cnt_16` ((cast(`b` as char(1000) array)),`a`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin

cc @tangenta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant