【 使用环境 】测试环境
【 OB or 其他组件 】
【 使用版本 】4.3.0.1
【问题描述】
select
pr.ptask_result_id,
pr.ptaskid,
pr.pole_id,
pr.lineid,
pr.station,
pr.segment,
pr.pole_num,
pr.mileage,
pr.cameraid,
pr.imgid,
pr.dfspath,
pr.filename,
pr.path,
pr.width,
pr.height,
pr.ptask_resultcol,
pr.recogstate,
pr.markstate,
pr.smartstate,
pr.dealdate,
pr.seen_state
from
ptask_result_47bb0343bbaa40d8bc0234d68ec1c063 pr
where
1 = 1;
查询响应时间慢于mysql、表内数据总数573350条
下面是表结构
CREATE TABLE ptask_result_47bb0343bbaa40d8bc0234d68ec1c063
(
ptask_result_id
int(11) unsigned NOT NULL AUTO_INCREMENT,
ptaskid
varchar(32) DEFAULT NULL,
pole_id
int(11) DEFAULT NULL,
lineid
varchar(32) NOT NULL,
station
varchar(100) DEFAULT NULL,
segment
varchar(100) DEFAULT NULL,
pole_num
varchar(100) DEFAULT NULL,
mileage
varchar(20) DEFAULT NULL,
cameraid
varchar(32) NOT NULL,
imgid
varchar(100) NOT NULL,
dfspath
varchar(128) DEFAULT NULL,
filename
varchar(45) DEFAULT ‘’,
path
varchar(256) DEFAULT ‘’,
width
smallint(6) DEFAULT NULL,
height
smallint(6) DEFAULT NULL,
historyFlag
smallint(6) DEFAULT ‘0’,
ptask_resultcol
varchar(45) DEFAULT ‘0’,
recogstate
smallint(6) DEFAULT NULL,
markstate
smallint(6) DEFAULT ‘0’,
smartstate
smallint(6) DEFAULT ‘0’,
_smartstate
smallint(6) DEFAULT NULL,
dealdate
datetime DEFAULT CURRENT_TIMESTAMP,
historyDate
datetime DEFAULT CURRENT_TIMESTAMP,
seen_state
smallint(6) DEFAULT ‘0’,
filepre
varchar(255) DEFAULT ‘’,
update_by
varchar(64) DEFAULT NULL COMMENT ‘更新者’,
update_date
datetime DEFAULT NULL COMMENT ‘更新时间’,
PRIMARY KEY (ptask_result_id
),
KEY ptaskid_pole_id
(ptaskid
, pole_id
) BLOCK_SIZE 16384 LOCAL
) AUTO_INCREMENT = 1000001 AUTO_INCREMENT_MODE = ‘ORDER’ DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMPRESSION = ‘zstd_1.3.8’ REPLICA_NUM = 1 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0$$
【复现路径】问题出现前后相关操作
【附件及日志】数据在附件