重现步骤
反馈人:王凯
数据库:zhcxkj_center_listing_comprehensive
查询时间:427.414
执行次数: 44
扫描行数:10465000
发送行数:1393490
指纹SQL: select id , customer_id , source_id , source_name , source_sku , item_id , ship_node_id , ship_node_name , input_quantity , availtosell_quantity , is_deleted , create_time , create_by , update_by , update_time FROM ? where ( update_time < replace ( ? , ? , ? ) AND update_time >= DATE_SUB ( replace ( ? , ? , ? ) , INTERVAL ? MINUTE ) ) ;
真实SQL:select id,customer_id,source_id,source_name,source_sku,item_id,ship_node_id,ship_node_name,input_quantity,availtosell_quantity,is_deleted,create_time,create_by,update_by,update_time from t_walmart_quantity where (update_time= DATE_SUB(replace(2025-09-27 03:45:06,%, ),INTERVAL 30 MINUTE));
王凯,人工修改过
AISQL修改建议:SELECT id, customer_id, source_id, source_name, source_sku, item_id, ship_node_id, ship_node_name, input_quantity, availtosell_quantity, is_deleted, create_time, create_by, update_by, update_time
FROM t_walmart_quantity
WHERE update_time >= 2025-09-27 03:15:06 AND update_time < 2025-09-27 04:15:05;
explain表:






id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t_walmart_quantity None range idx_update_time idx_update_time 6 None 436 100 Using index condition

额外建议:
索引建议:扫描行数上千万,索引失效,sql 内勿使用 公式之类计算,代码处理好拼接成sql执行

(2025-09-27>
历史记录  
  1. 2025-10-13 09:12:35, 由 陈莉珍 创建。
  2. 2025-10-13 10:13:32, 由 陈莉珍 解决,方案为 性能问题 。
    修改了 解决方案,旧值为 "",新值为 "performance"。
    修改了 解决日期,旧值为 "",新值为 "2025-10-13 10:13:27"。
    修改了 指派给 ,旧值为 "renfangtao",新值为 "chenlizhen"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "chenlizhen"。
  3. 2025-10-13 10:14:04, 由 陈莉珍 编辑。
    修改了 所属模块 ,旧值为 "0",新值为 "1872"。
    修改了 业务部门 ,旧值为 "0",新值为 "2"。
    修改了 开发责任人,旧值为 "",新值为 "renfangtao"。
    修改了 测试责任人,旧值为 "",新值为 "renfangtao"。
    修改了 解决时效 ,旧值为 "0",新值为 "1.01"。
    修改了 重现步骤 ,区别为:
    001- 反馈人:王凯
    001+ 反馈人:王凯 数据库:zhcxkj_center_listing_comprehensive 查询时间:427.414 执行次数: 44 扫描行数:10465000 发送行数:1393490 指纹SQL: select id , customer_id , source_id , source_name , source_sku , item_id , ship_node_id , ship_node_name , input_quantity , availtosell_quantity , is_deleted , create_time , create_by , update_by , update_time FROM ? where ( update_time &lt; replace ( ? , ? , ? ) AND update_time &gt;= DATE_SUB ( replace ( ? , ? , ? ) , INTERVAL ? MINUTE ) ) ; 真实SQL:select id,customer_id,source_id,source_name,source_sku,item_id,ship_node_id,ship_node_name,input_quantity,availtosell_quantity,is_deleted,create_time,create_by,update_by,update_time from t_walmart_quantity where (update_time= DATE_SUB(replace(2025-09-27 03:45:06,%, ),INTERVAL 30 MINUTE)); 王凯,人工修改过 AISQL修改建议:SELECT id, customer_id, source_id, source_name, source_sku, item_id, ship_node_id, ship_node_name, input_quantity, availtosell_quantity, is_deleted, create_time, create_by, update_by, update_time FROM t_walmart_quantity WHERE update_time &gt;= 2025-09-27 03:15:06 AND update_time &lt; 2025-09-27 04:15:05; explain表:id
    002- 数据库:zhcxkj_center_listing_comprehensive
    002+ select_type
    003- 查询时间:427.414
    003+ table
    004- 执行次数: 44
    004+ partitions
    005- 扫描行数:10465000
    005+ type
    006- 发送行数:1393490
    006+ possible_keys
    007- 指纹SQL: select id , customer_id , source_id , source_name , source_sku , item_id , ship_node_id , ship_node_name , input_quantity , availtosell_quantity , is_deleted , create_time , create_by , update_by , update_time FROM ? where ( update_time &lt; replace ( ? , ? , ? ) AND update_time &gt;= DATE_SUB ( replace ( ? , ? , ? ) , INTERVAL ? MINUTE ) ) ;
    007+ key
    008- 真实SQL:select id,customer_id,source_id,source_name,source_sku,item_id,ship_node_id,ship_node_name,input_quantity,availtosell_quantity,is_deleted,create_time,create_by,update_by,update_time from t_walmart_quantity where (update_time= DATE_SUB(replace(2025-09-27 03:45:06,%, ),INTERVAL 30 MINUTE));
    008+ key_len
    009- 王凯,人工修改过
    009+ ref
    010- AISQL修改建议:SELECT id, customer_id, source_id, source_name, source_sku, item_id, ship_node_id, ship_node_name, input_quantity, availtosell_quantity, is_deleted, create_time, create_by, update_by, update_time
    010+ rows
    011- FROM t_walmart_quantity
    011+ filtered
    012- WHERE update_time &gt;= 2025-09-27 03:15:06 AND update_time &lt; 2025-09-27 04:15:05;
    012+ Extra
    013- explain表:
    013+ 1
    014-
    014+ SIMPLE
    015-
    015+ t_walmart_quantity
    016-
    016+ None
    017-
    017+ range
    018-
    018+ idx_update_time
    019-
    019+ idx_update_time
    020-
    020+ 6
    021-
    021+ None
    022-
    022+ 436
    023-
    023+ 100
    024- id
    024+ Using index condition
    025-
    025+
    026-
    026+ 额外建议: 索引建议:扫描行数上千万,索引失效,sql 内勿使用 公式之类计算,代码处理好拼接成sql执行(2025-09-27&gt;
    027- select_type
    028-
    029-
    030- table
    031-
    032-
    033- partitions
    034-
    035-
    036- type
    037-
    038-
    039- possible_keys
    040-
    041-
    042- key
    043-
    044-
    045- key_len
    046-
    047-
    048- ref
    049-
    050-
    051- rows
    052-
    053-
    054- filtered
    055-
    056-
    057- Extra
    058-
    059-
    060-
    061-
    062-
    063-
    064- 1
    065-
    066-
    067- SIMPLE
    068-
    069-
    070- t_walmart_quantity
    071-
    072-
    073- None
    074-
    075-
    076- range
    077-
    078-
    079- idx_update_time
    080-
    081-
    082- idx_update_time
    083-
    084-
    085- 6
    086-
    087-
    088- None
    089-
    090-
    091- 436
    092-
    093-
    094- 100
    095-
    096-
    097- Using index condition
    098-
    099-
    100-
    101-
    102-
    103- 额外建议:
    104- 索引建议:扫描行数上千万,索引失效,sql 内勿使用 公式之类计算,代码处理好拼接成sql执行
    105-
    106-
    001- 反馈人:王凯<br />
    001+ 反馈人:王凯<br /> 数据库:zhcxkj_center_listing_comprehensive<br /> 查询时间:427.414<br /> 执行次数: 44<br /> 扫描行数:10465000<br /> 发送行数:1393490<br /> 指纹SQL: select id , customer_id , source_id , source_name , source_sku , item_id , ship_node_id , ship_node_name , input_quantity , availtosell_quantity , is_deleted , create_time , create_by , update_by , update_time FROM ? where ( update_time &lt; replace ( ? , ? , ? ) AND update_time &gt;= DATE_SUB ( replace ( ? , ? , ? ) , INTERVAL ? MINUTE ) ) ;<br /> 真实SQL:select id,customer_id,source_id,source_name,source_sku,item_id,ship_node_id,ship_node_name,input_quantity,availtosell_quantity,is_deleted,create_time,create_by,update_by,update_time from t_walmart_quantity where (update_time= DATE_SUB(replace(2025-09-27 03:45:06,%, ),INTERVAL 30 MINUTE));<br /> 王凯,人工修改过<br /> AISQL修改建议:SELECT id, customer_id, source_id, source_name, source_sku, item_id, ship_node_id, ship_node_name, input_quantity, availtosell_quantity, is_deleted, create_time, create_by, update_by, update_time<br /> FROM t_walmart_quantity<br /> WHERE update_time &gt;= 2025-09-27 03:15:06 AND update_time &lt; 2025-09-27 04:15:05;<br /> explain表:<br /><br /><br /><br /><br /><br /><br /><table><tbody><tr><th>id</th>
    002- 数据库:zhcxkj_center_listing_comprehensive<br />
    002+ <th>select_type</th>
    003- 查询时间:427.414<br />
    003+ <th>table</th>
    004- 执行次数: 44<br />
    004+ <th>partitions</th>
    005- 扫描行数:10465000<br />
    005+ <th>type</th>
    006- 发送行数:1393490<br />
    006+ <th>possible_keys</th>
    007- 指纹SQL: select id , customer_id , source_id , source_name , source_sku , item_id , ship_node_id , ship_node_name , input_quantity , availtosell_quantity , is_deleted , create_time , create_by , update_by , update_time FROM ? where ( update_time &lt; replace ( ? , ? , ? ) AND update_time &gt;= DATE_SUB ( replace ( ? , ? , ? ) , INTERVAL ? MINUTE ) ) ;<br />
    007+ <th>key</th>
    008- 真实SQL:select id,customer_id,source_id,source_name,source_sku,item_id,ship_node_id,ship_node_name,input_quantity,availtosell_quantity,is_deleted,create_time,create_by,update_by,update_time from t_walmart_quantity where (update_time<replace(2025-09-27 04:15:05,%,="" )="" and="" update_time="">= DATE_SUB(replace(2025-09-27 03:45:06,%, ),INTERVAL 30 MINUTE));<br />
    008+ <th>key_len</th>
    009- 王凯,人工修改过<br />
    009+ <th>ref</th>
    010- AISQL修改建议:SELECT id, customer_id, source_id, source_name, source_sku, item_id, ship_node_id, ship_node_name, input_quantity, availtosell_quantity, is_deleted, create_time, create_by, update_by, update_time<br />
    010+ <th>rows</th>
    011- FROM t_walmart_quantity<br />
    011+ <th>filtered</th>
    012- WHERE update_time &gt;= 2025-09-27 03:15:06 AND update_time &lt; 2025-09-27 04:15:05;<br />
    012+ <th>Extra</th>
    013- explain表:<br />
    013+ </tr></tbody><tbody><tr><td>1</td>
    014- <br />
    014+ <td>SIMPLE</td>
    015- <br />
    015+ <td>t_walmart_quantity</td>
    016- <br />
    016+ <td>None</td>
    017- <br />
    017+ <td>range</td>
    018- <br />
    018+ <td>idx_update_time</td>
    019- <br />
    019+ <td>idx_update_time</td>
    020- <table>
    020+ <td>6</td>
    021- <tbody>
    021+ <td>None</td>
    022- <tr>
    022+ <td>436</td>
    023- <th>
    023+ <td>100</td>
    024- id
    024+ <td>Using index condition</td>
    025- </th>
    025+ </tr></tbody></table><br />
    026- <th>
    026+ 额外建议:<br /> 索引建议:扫描行数上千万,索引失效,sql 内勿使用 公式之类计算,代码处理好拼接成sql执行<br /><br />(2025-09-27&gt;
    027- select_type
    028- </th>
    029- <th>
    030- table
    031- </th>
    032- <th>
    033- partitions
    034- </th>
    035- <th>
    036- type
    037- </th>
    038- <th>
    039- possible_keys
    040- </th>
    041- <th>
    042- key
    043- </th>
    044- <th>
    045- key_len
    046- </th>
    047- <th>
    048- ref
    049- </th>
    050- <th>
    051- rows
    052- </th>
    053- <th>
    054- filtered
    055- </th>
    056- <th>
    057- Extra
    058- </th>
    059- </tr>
    060- </tbody>
    061- <tbody>
    062- <tr>
    063- <td>
    064- 1
    065- </td>
    066- <td>
    067- SIMPLE
    068- </td>
    069- <td>
    070- t_walmart_quantity
    071- </td>
    072- <td>
    073- None
    074- </td>
    075- <td>
    076- range
    077- </td>
    078- <td>
    079- idx_update_time
    080- </td>
    081- <td>
    082- idx_update_time
    083- </td>
    084- <td>
    085- 6
    086- </td>
    087- <td>
    088- None
    089- </td>
    090- <td>
    091- 436
    092- </td>
    093- <td>
    094- 100
    095- </td>
    096- <td>
    097- Using index condition
    098- </td>
    099- </tr>
    100- </tbody>
    101- </table>
    102- <br />
    103- 额外建议:<br />
    104- 索引建议:扫描行数上千万,索引失效,sql 内勿使用 公式之类计算,代码处理好拼接成sql执行<br />
    105- <br />
    106- </replace(2025-09-27>
  4. 2025-10-13 10:14:08, 由 陈莉珍 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "chenlizhen",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "chenlizhen"。
    修改了 关闭日期,旧值为 "",新值为 "2025-10-13 10:14:08"。
所属项目 技术中心-需求池
所属模块 多平台   walmart
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P1
Bug状态 已关闭
业务部门 总经办
影响功能
开发责任人 任芳涛
测试责任人 任芳涛
解决时效 1.01
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2025-10-13 10:14:08
截止日期 0000-00-00
上线时间 2025-10-13 10:13:27
上线时效 1.01
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 陈莉珍 于 2025-10-13 09:12:35
影响环境 生产环境-业务反馈
由谁解决 陈莉珍 于 2025-10-13 10:13:27
解决版本
解决方案 性能问题
由谁关闭 陈莉珍 于 2025-10-13 10:14:08
最后修改 陈莉珍 于 2025-10-13 10:14:08
相关Bug