重现步骤
反馈人:袁慧斌
数据库:zhcxkj_center_strategy_comprehensive
查询时间:25.3764
执行次数: 162
扫描行数:194214
发送行数:1
指纹SQL: SELECT COUNT ( * ) FROM ? WHERE ( source_id = ? AND status = ? AND create_time >= ? ) ;
真实SQL:SELECT COUNT( * ) FROM t_strategy_execute_queue_offline_fruugo WHERE (source_id = 27738 AND status = 4 AND create_time >= 2025-10-15 00:00:00);
袁慧斌,人工修改过
AISQL修改建议:SELECT COUNT(*)
FROM t_strategy_execute_queue_offline_fruugo
WHERE source_id = 27738
AND status = 4
AND create_time >= 2025-10-15 00:00:00;
explain表:






id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t_strategy_execute_queue_offline_fruugo None range idx_source_id,idx_source_id_status,idx_create_time_status idx_create_time_status 19 None 591140 0.74 Using where; Using index

额外建议:排查索引
索引建议:
取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【source_id】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。

取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【status】 100000 条记录,重复的数据有:【94222】 条,没有必要为该字段创建索引。

→ 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引已经存在,无需添加任何索引。

【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引分析:
+--------------------------------+------------------------+---------------+---------------+
| TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |
+================================+========================+===============+===============+
| t_strategy_execute_queue_offli | idx_create_time_status | create_time | 260586 |
| ne_fruugo | | | |
+--------------------------------+------------------------+---------------+---------------+


历史记录  
  1. 2025-11-11 09:53:56, 由 陈莉珍 创建。
  2. 2025-11-12 18:23:24, 由 陈小豪 指派给 蔡俊伟。
    修改了 指派给,旧值为 "chenxiaohao",新值为 "caijunwei"。
  3. 2025-11-12 19:09:17, 由 蔡俊伟 解决,方案为 性能问题 。
    修改了 解决方案,旧值为 "",新值为 "performance"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2025-11-12 19:08:47"。
    修改了 指派给 ,旧值为 "caijunwei",新值为 "chenlizhen"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "caijunwei"。

    已解决

  4. 2025-11-13 09:31:03, 由 陈莉珍 编辑。
    修改了 所属模块 ,旧值为 "0",新值为 "1953"。
    修改了 业务部门 ,旧值为 "0",新值为 "2"。
    修改了 测试责任人,旧值为 "",新值为 "caijunwei"。
    修改了 解决时效 ,旧值为 "0",新值为 "33.25"。
    修改了 重现步骤 ,区别为:
    001- 反馈人:袁慧斌
    001+ 反馈人:袁慧斌 数据库:zhcxkj_center_strategy_comprehensive 查询时间:25.3764 执行次数: 162 扫描行数:194214 发送行数:1 指纹SQL: SELECT COUNT ( * ) FROM ? WHERE ( source_id = ? AND status = ? AND create_time >= ? ) ; 真实SQL:SELECT COUNT( * ) FROM t_strategy_execute_queue_offline_fruugo WHERE (source_id = 27738 AND status = 4 AND create_time >= 2025-10-15 00:00:00); 袁慧斌,人工修改过 AISQL修改建议:SELECT COUNT(*) FROM t_strategy_execute_queue_offline_fruugo WHERE source_id = 27738 AND status = 4 AND create_time >= 2025-10-15 00:00:00; explain表:id
    002- 数据库:zhcxkj_center_strategy_comprehensive
    002+ select_type
    003- 查询时间:25.3764
    003+ table
    004- 执行次数: 162
    004+ partitions
    005- 扫描行数:194214
    005+ type
    006- 发送行数:1
    006+ possible_keys
    007- 指纹SQL: SELECT COUNT ( * ) FROM ? WHERE ( source_id = ? AND status = ? AND create_time >= ? ) ;
    007+ key
    008- 真实SQL:SELECT COUNT( * ) FROM t_strategy_execute_queue_offline_fruugo WHERE (source_id = 27738 AND status = 4 AND create_time >= 2025-10-15 00:00:00);
    008+ key_len
    009- 袁慧斌,人工修改过
    009+ ref
    010- AISQL修改建议:SELECT COUNT(*)
    010+ rows
    011- FROM t_strategy_execute_queue_offline_fruugo
    011+ filtered
    012- WHERE source_id = 27738
    012+ Extra
    013- AND status = 4
    013+ 1
    014- AND create_time >= 2025-10-15 00:00:00;
    014+ SIMPLE
    015- explain表:
    015+ t_strategy_execute_queue_offline_fruugo
    016-
    016+ None
    017-
    017+ range
    018-
    018+ idx_source_id,idx_source_id_status,idx_create_time_status
    019-
    019+ idx_create_time_status
    020-
    020+ 19
    021-
    021+ None
    022-
    022+ 591140
    023-
    023+ 0.74
    024-
    024+ Using where; Using index
    025-
    025+
    026- id
    026+ 额外建议:排查索引 索引建议: 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【source_id】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【status】 100000 条记录,重复的数据有:【94222】 条,没有必要为该字段创建索引。→ 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引已经存在,无需添加任何索引。 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引分析: +--------------------------------+------------------------+---------------+---------------+ | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY | +================================+========================+===============+===============+ | t_strategy_execute_queue_offli | idx_create_time_status | create_time | 260586 | | ne_fruugo | | | | +--------------------------------+------------------------+---------------+---------------+
    027-
    028-
    029- select_type
    030-
    031-
    032- table
    033-
    034-
    035- partitions
    036-
    037-
    038- type
    039-
    040-
    041- possible_keys
    042-
    043-
    044- key
    045-
    046-
    047- key_len
    048-
    049-
    050- ref
    051-
    052-
    053- rows
    054-
    055-
    056- filtered
    057-
    058-
    059- Extra
    060-
    061-
    062-
    063-
    064-
    065-
    066- 1
    067-
    068-
    069- SIMPLE
    070-
    071-
    072- t_strategy_execute_queue_offline_fruugo
    073-
    074-
    075- None
    076-
    077-
    078- range
    079-
    080-
    081- idx_source_id,idx_source_id_status,idx_create_time_status
    082-
    083-
    084- idx_create_time_status
    085-
    086-
    087- 19
    088-
    089-
    090- None
    091-
    092-
    093- 591140
    094-
    095-
    096- 0.74
    097-
    098-
    099- Using where; Using index
    100-
    101-
    102-
    103-
    104-
    105- 额外建议:排查索引
    106- 索引建议:
    107- 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【source_id】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。
    108-
    109- 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【status】 100000 条记录,重复的数据有:【94222】 条,没有必要为该字段创建索引。
    110-
    111- → 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引已经存在,无需添加任何索引。
    112-
    113- 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引分析:
    114- +--------------------------------+------------------------+---------------+---------------+
    115- | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |
    116- +================================+========================+===============+===============+
    117- | t_strategy_execute_queue_offli | idx_create_time_status | create_time | 260586 |
    118- | ne_fruugo | | | |
    119- +--------------------------------+------------------------+---------------+---------------+
    120-
    121-
    001- 反馈人:袁慧斌<br />
    001+ 反馈人:袁慧斌<br /> 数据库:zhcxkj_center_strategy_comprehensive<br /> 查询时间:25.3764<br /> 执行次数: 162<br /> 扫描行数:194214<br /> 发送行数:1<br /> 指纹SQL: SELECT COUNT ( * ) FROM ? WHERE ( source_id = ? AND status = ? AND create_time &gt;= ? ) ;<br /> 真实SQL:SELECT COUNT( * ) FROM t_strategy_execute_queue_offline_fruugo WHERE (source_id = 27738 AND status = 4 AND create_time &gt;= 2025-10-15 00:00:00);<br /> 袁慧斌,人工修改过<br /> AISQL修改建议:SELECT COUNT(*)<br /> FROM t_strategy_execute_queue_offline_fruugo<br /> WHERE source_id = 27738<br /> AND status = 4<br /> AND create_time &gt;= 2025-10-15 00:00:00;<br /> explain表:<br /><br /><br /><br /><br /><br /><br /><table><tbody><tr><th>id</th>
    002- 数据库:zhcxkj_center_strategy_comprehensive<br />
    002+ <th>select_type</th>
    003- 查询时间:25.3764<br />
    003+ <th>table</th>
    004- 执行次数: 162<br />
    004+ <th>partitions</th>
    005- 扫描行数:194214<br />
    005+ <th>type</th>
    006- 发送行数:1<br />
    006+ <th>possible_keys</th>
    007- 指纹SQL: SELECT COUNT ( * ) FROM ? WHERE ( source_id = ? AND status = ? AND create_time &gt;= ? ) ;<br />
    007+ <th>key</th>
    008- 真实SQL:SELECT COUNT( * ) FROM t_strategy_execute_queue_offline_fruugo WHERE (source_id = 27738 AND status = 4 AND create_time &gt;= 2025-10-15 00:00:00);<br />
    008+ <th>key_len</th>
    009- 袁慧斌,人工修改过<br />
    009+ <th>ref</th>
    010- AISQL修改建议:SELECT COUNT(*)<br />
    010+ <th>rows</th>
    011- FROM t_strategy_execute_queue_offline_fruugo<br />
    011+ <th>filtered</th>
    012- WHERE source_id = 27738<br />
    012+ <th>Extra</th>
    013- AND status = 4<br />
    013+ </tr></tbody><tbody><tr><td>1</td>
    014- AND create_time &gt;= 2025-10-15 00:00:00;<br />
    014+ <td>SIMPLE</td>
    015- explain表:<br />
    015+ <td>t_strategy_execute_queue_offline_fruugo</td>
    016- <br />
    016+ <td>None</td>
    017- <br />
    017+ <td>range</td>
    018- <br />
    018+ <td>idx_source_id,idx_source_id_status,idx_create_time_status</td>
    019- <br />
    019+ <td>idx_create_time_status</td>
    020- <br />
    020+ <td>19</td>
    021- <br />
    021+ <td>None</td>
    022- <table>
    022+ <td>591140</td>
    023- <tbody>
    023+ <td>0.74</td>
    024- <tr>
    024+ <td>Using where; Using index</td>
    025- <th>
    025+ </tr></tbody></table><br />
    026- id
    026+ 额外建议:排查索引 <br /> 索引建议:<br /> 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【source_id】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。<br /><br /> 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【status】 100000 条记录,重复的数据有:【94222】 条,没有必要为该字段创建索引。<br /><br /><span style="color:#008000;font-weight:bold;">→ 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引已经存在,无需添加任何索引。</span><br /><br /> 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引分析:<br /> +--------------------------------+------------------------+---------------+---------------+<br /> | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |<br /> +================================+========================+===============+===============+<br /> | t_strategy_execute_queue_offli | idx_create_time_status | create_time | 260586 |<br /> | ne_fruugo | | | |<br /> +--------------------------------+------------------------+---------------+---------------+<br /><br /><br />
    027- </th>
    028- <th>
    029- select_type
    030- </th>
    031- <th>
    032- table
    033- </th>
    034- <th>
    035- partitions
    036- </th>
    037- <th>
    038- type
    039- </th>
    040- <th>
    041- possible_keys
    042- </th>
    043- <th>
    044- key
    045- </th>
    046- <th>
    047- key_len
    048- </th>
    049- <th>
    050- ref
    051- </th>
    052- <th>
    053- rows
    054- </th>
    055- <th>
    056- filtered
    057- </th>
    058- <th>
    059- Extra
    060- </th>
    061- </tr>
    062- </tbody>
    063- <tbody>
    064- <tr>
    065- <td>
    066- 1
    067- </td>
    068- <td>
    069- SIMPLE
    070- </td>
    071- <td>
    072- t_strategy_execute_queue_offline_fruugo
    073- </td>
    074- <td>
    075- None
    076- </td>
    077- <td>
    078- range
    079- </td>
    080- <td>
    081- idx_source_id,idx_source_id_status,idx_create_time_status
    082- </td>
    083- <td>
    084- idx_create_time_status
    085- </td>
    086- <td>
    087- 19
    088- </td>
    089- <td>
    090- None
    091- </td>
    092- <td>
    093- 591140
    094- </td>
    095- <td>
    096- 0.74
    097- </td>
    098- <td>
    099- Using where; Using index
    100- </td>
    101- </tr>
    102- </tbody>
    103- </table>
    104- <br />
    105- 额外建议:排查索引 <br />
    106- 索引建议:<br />
    107- 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【source_id】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。<br />
    108- <br />
    109- 取出表 【t_strategy_execute_queue_offline_fruugo】 where条件字段 【status】 100000 条记录,重复的数据有:【94222】 条,没有必要为该字段创建索引。<br />
    110- <br />
    111- <span style="color:green;font-weight:bold;">→ 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引已经存在,无需添加任何索引。</span><br />
    112- <br />
    113- 【t_strategy_execute_queue_offline_fruugo】表 【create_time】字段,索引分析:<br />
    114- +--------------------------------+------------------------+---------------+---------------+<br />
    115- | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |<br />
    116- +================================+========================+===============+===============+<br />
    117- | t_strategy_execute_queue_offli | idx_create_time_status | create_time | 260586 |<br />
    118- | ne_fruugo | | | |<br />
    119- +--------------------------------+------------------------+---------------+---------------+<br />
    120- <br />
    121- <br />
  5. 2025-11-13 09:31:07, 由 陈莉珍 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "chenlizhen",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "chenlizhen"。
    修改了 关闭日期,旧值为 "",新值为 "2025-11-13 09:31:07"。
所属项目 技术中心-需求池
所属模块 多平台   OZON
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P1
Bug状态 已关闭
业务部门 总经办
影响功能
开发责任人 蔡俊伟
测试责任人 蔡俊伟
解决时效 33.25
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2025-11-13 09:31:07
截止日期 0000-00-00
上线时间 2025-11-12 19:08:47
上线时效 33.25
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 陈莉珍 于 2025-11-11 09:53:56
影响环境 生产环境-业务反馈
由谁解决 蔡俊伟 于 2025-11-12 19:08:47
解决版本 主干
解决方案 性能问题
由谁关闭 陈莉珍 于 2025-11-13 09:31:07
最后修改 陈莉珍 于 2025-11-13 09:31:07
相关Bug