matrixone
matrixone copied to clipboard
[Bug]: performance degradation of insertion
Is there an existing issue for the same bug?
- [X] I have checked the existing issues.
Branch Name
main
Commit ID
lastest
Other Environment Information
- Hardware parameters:
- OS type:
- Others:
Actual Behavior
drop if exists database test; create database test; use test;
CREATE TABLE `metric` (
`metric_name` varchar(1024) DEFAULT 'sys' COMMENT 'metric name, like: sql_statement_total, server_connections, process_cpu_percent, sys_memory_used, ...',
`collecttime` datetime(6) NOT NULL COMMENT 'metric data collect time',
`value` double DEFAULT '0.0' COMMENT 'metric value',
`node` varchar(1024) DEFAULT 'monolithic' COMMENT 'mo node uuid',
`role` varchar(1024) DEFAULT 'monolithic' COMMENT 'mo node role, like: CN, DN, LOG',
`account` varchar(1024) DEFAULT 'sys' COMMENT 'account name',
`type` varchar(1024) NOT NULL COMMENT 'sql type, like: insert, select, ...'
) COMMENT='metric data[mo_no_del_hint]' CLUSTER BY (`collecttime`, `metric_name`, `account`);
insert into metric select
"metric_name_" || (result % 22),
date_add('2024-08-01 00:00:00', interval cast(result / 1000 as int) SECOND),
result,
"node_" || (result % 10),
"role_" || (result % 3),
"account_" || (result % 100),
"type_" || (result % 10)
from generate_series(1,1e7) g;
执行如上sql, 运行过程中会failed
[1] + 17948 killed ./mo-service -debug-http :9876 -launch ./etc/launch/launch.toml > 2>&1 ERROR 2013 (HY000): Lost connection to MySQL server during query No connection. Trying to reconnect... ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:6001' (61) ERROR: Can't connect to the server
mysql>
@Ariznawlll 辛苦QA同学补充相关现象
Expected Behavior
No response
Steps to Reproduce
drop if exists database test; create database test; use test;
CREATE TABLE `metric` (
`metric_name` varchar(1024) DEFAULT 'sys' COMMENT 'metric name, like: sql_statement_total, server_connections, process_cpu_percent, sys_memory_used, ...',
`collecttime` datetime(6) NOT NULL COMMENT 'metric data collect time',
`value` double DEFAULT '0.0' COMMENT 'metric value',
`node` varchar(1024) DEFAULT 'monolithic' COMMENT 'mo node uuid',
`role` varchar(1024) DEFAULT 'monolithic' COMMENT 'mo node role, like: CN, DN, LOG',
`account` varchar(1024) DEFAULT 'sys' COMMENT 'account name',
`type` varchar(1024) NOT NULL COMMENT 'sql type, like: insert, select, ...'
) COMMENT='metric data[mo_no_del_hint]' CLUSTER BY (`collecttime`, `metric_name`, `account`);
insert into metric select
"metric_name_" || (result % 22),
date_add('2024-08-01 00:00:00', interval cast(result / 1000 as int) SECOND),
result,
"node_" || (result % 10),
"role_" || (result % 3),
"account_" || (result % 100),
"type_" || (result % 10)
from generate_series(1,1e7) g;
***
以及相关的大数据测试
Additional information
No response