Closed glorv closed 3 years ago
Optimize local writer performance and memory usage.
Optimize local writer by:
Bench result: The benchmark tests were run on a 40core machine with an NVME disk. and based on the following three data and table schema:
order_line
PRIMARY KEY (`ol_w_id`,`ol_d_id`,`ol_o_id`,`ol_number`), KEY `idx_d_i` (`ol_d_id`, `ol_i_id`), KEY `idx_d_w_supply` (`ol_d_id`, `ol_w_id`, `ol_supply_w_id`)
PRIMARY KEY (`ol_w_id`,`ol_d_id`,`ol_o_id`,`ol_number`), KEY `idx_d_i` (`ol_d_id`,`ol_i_id`), KEY `idx_d_w_supply` (`ol_d_id`,`ol_w_id`,`ol_supply_w_id`), KEY `idx_o_amount` (`ol_o_id`,`ol_amount`), KEY `idx_d_supply` (`ol_d_id`,`ol_supply_w_id`), KEY `idx_o_d_i` (`ol_o_id`,`ol_d_id`,`ol_i_id`), KEY `idx_i_id` (`ol_i_id`)
Tests
Side effects
Related changes
/run-all-tests
closed in favor of https://github.com/pingcap/br/pull/753
What problem does this PR solve?
Optimize local writer performance and memory usage.
What is changed and how it works?
Optimize local writer by:
Bench result: The benchmark tests were run on a 40core machine with an NVME disk. and based on the following three data and table schema:
order_line
table with 3 indexes. Thus each row generates 4 kvs.order_line
table with 3 indexes. Thus each row generates 8 kvs.Check List
Tests
Side effects
Related changes