重现步骤
反馈人:王凯
数据库:zhcxkj_center_strategy_comprehensive
查询时间:197.989
执行次数: 272
扫描行数:4468090
发送行数:200
指纹SQL: SELECT id , promotion_id , promotion_name , promotion_type , source_id , source_name , site_id , offer_id , pf_listing_id , original_price , price , currency_id , STATUS , meli_percent , seller_percent , create_by , update_by , create_name , update_name , create_time , update_time , is_deleted , version FROM ? FORCE INDEX ( idx_source_site_listing_id ) where source_id = ? and site_id = ? and promotion_id in ( ? , ? ) and STATUS = ? and id > ? and promotion_type = ? and is_deleted = ? order by id limit ? ;
真实SQL:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, version FROM t_promotion_candidate_detail_mercadolibre_1 FORCE INDEX(idx_source_site_listing_id) where source_id = 30704 and site_id = MLC and promotion_id in ( P-MLC15219004 , P-MLC15561030 ) and STATUS = candidate and id > 139530994 and promotion_type = DEAL and is_deleted = 0 order by id limit 200;
无人工修改
AISQL修改建议:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, VERSION
FROM t_promotion_candidate_detail_mercadolibre_1
WHERE source_id = 30704
AND site_id = MLC
AND promotion_id IN (P-MLC15219004, P-MLC15561030)
AND STATUS = candidate
AND id > 139530994
AND promotion_type = DEAL
AND is_deleted = 0
ORDER BY id
LIMIT 200;
explain表:






id select_type table partitions type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t_promotion_candidate_detail_mercadolibre_1 None ref idx_source_site_listing_id idx_source_site_listing_id 90 const,const 7777814 0.01 Using index condition; Using where; Using filesort

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

取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【site_id = MLC】 100000 条记录,重复的数据有:【85513】 条,没有必要为该字段创建索引。

取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【STATUS = candidate】 100000 条记录,重复的数据有:【63700】 条,没有必要为该字段创建索引。

取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【promotion_type = DEAL】 100000 条记录,重复的数据有:【80106】 条,没有必要为该字段创建索引。

取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【is_deleted = 0】 100000 条记录,重复的数据有:【99998】 条,没有必要为该字段创建索引。

建议添加索引:ALTER TABLE t_promotion_candidate_detail_mercadolibre_1 ADD INDEX idx_promotion_id_id(promotion_id,id);


【t_promotion_candidate_detail_mercadolibre_1】表 【promotion_id,id】字段,索引分析:
+--------------------------------+--------------------------------+---------------+---------------+
| TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |
+================================+================================+===============+===============+
| t_promotion_candidate_detail_m | idx_promotion_id_source_id_sit | promotion_id | 6342 |
| ercadolibre_1 | e_id_version_is_deleted | | |
+--------------------------------+--------------------------------+---------------+---------------+
| t_promotion_candidate_detail_m | idx_source_promotion_status | promotion_id | 23779 |
| ercadolibre_1 | | | |
+--------------------------------+--------------------------------+---------------+---------------+
| t_promotion_candidate_detail_m | idx_source_site_promotion | promotion_id | 29778 |
| ercadolibre_1 | | | |
+--------------------------------+--------------------------------+---------------+---------------+
| t_promotion_candidate_detail_m | PRIMARY | id | 26038018 |
| ercadolibre_1 | | | |
+--------------------------------+--------------------------------+---------------+---------------+


历史记录  
  1. 2025-10-14 08:40:48, 由 陈莉珍 创建。
  2. 2025-10-14 10:05:29, 由 王金锋 确认Bug。
    修改了 Bug类型 ,旧值为 "",新值为 "feibug"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    强制索引是之前提的让加的,同:https://pm.zhcxkj.com/zentao/bug-view-59150.html
  3. 2025-10-14 10:05:36, 由 王金锋 指派给 王金锋。
    https://pm.zhcxkj.com/zentao/bug-view-59150.html
  4. 2025-10-14 10:05:59, 由 王金锋 解决,方案为 非BUG-纯属误判 。
    修改了 解决方案,旧值为 "",新值为 "feibug"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2025-10-14 10:05:38"。
    修改了 指派给 ,旧值为 "wangjinfeng",新值为 "chenlizhen"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 解决者 ,旧值为 "",新值为 "wangjinfeng"。
    https://pm.zhcxkj.com/zentao/bug-view-59150.html
  5. 2025-10-14 14:51:06, 由 陈莉珍 编辑。
    修改了 所属模块 ,旧值为 "0",新值为 "1874"。
    修改了 业务部门 ,旧值为 "0",新值为 "2"。
    修改了 开发责任人,旧值为 "",新值为 "wangkai"。
    修改了 测试责任人,旧值为 "",新值为 "wangkai"。
    修改了 解决时效 ,旧值为 "0",新值为 "1.41"。
    修改了 重现步骤 ,区别为:
    001- 反馈人:王凯
    001+ 反馈人:王凯 数据库:zhcxkj_center_strategy_comprehensive 查询时间:197.989 执行次数: 272 扫描行数:4468090 发送行数:200 指纹SQL: SELECT id , promotion_id , promotion_name , promotion_type , source_id , source_name , site_id , offer_id , pf_listing_id , original_price , price , currency_id , STATUS , meli_percent , seller_percent , create_by , update_by , create_name , update_name , create_time , update_time , is_deleted , version FROM ? FORCE INDEX ( idx_source_site_listing_id ) where source_id = ? and site_id = ? and promotion_id in ( ? , ? ) and STATUS = ? and id > ? and promotion_type = ? and is_deleted = ? order by id limit ? ; 真实SQL:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, version FROM t_promotion_candidate_detail_mercadolibre_1 FORCE INDEX(idx_source_site_listing_id) where source_id = 30704 and site_id = MLC and promotion_id in ( P-MLC15219004 , P-MLC15561030 ) and STATUS = candidate and id > 139530994 and promotion_type = DEAL and is_deleted = 0 order by id limit 200; 无人工修改 AISQL修改建议:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, VERSION FROM t_promotion_candidate_detail_mercadolibre_1 WHERE source_id = 30704 AND site_id = MLC AND promotion_id IN (P-MLC15219004, P-MLC15561030) AND STATUS = candidate AND id > 139530994 AND promotion_type = DEAL AND is_deleted = 0 ORDER BY id LIMIT 200; explain表:id
    002- 数据库:zhcxkj_center_strategy_comprehensive
    002+ select_type
    003- 查询时间:197.989
    003+ table
    004- 执行次数: 272
    004+ partitions
    005- 扫描行数:4468090
    005+ type
    006- 发送行数:200
    006+ possible_keys
    007- 指纹SQL: SELECT id , promotion_id , promotion_name , promotion_type , source_id , source_name , site_id , offer_id , pf_listing_id , original_price , price , currency_id , STATUS , meli_percent , seller_percent , create_by , update_by , create_name , update_name , create_time , update_time , is_deleted , version FROM ? FORCE INDEX ( idx_source_site_listing_id ) where source_id = ? and site_id = ? and promotion_id in ( ? , ? ) and STATUS = ? and id > ? and promotion_type = ? and is_deleted = ? order by id limit ? ;
    007+ key
    008- 真实SQL:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, version FROM t_promotion_candidate_detail_mercadolibre_1 FORCE INDEX(idx_source_site_listing_id) where source_id = 30704 and site_id = MLC and promotion_id in ( P-MLC15219004 , P-MLC15561030 ) and STATUS = candidate and id > 139530994 and promotion_type = DEAL and is_deleted = 0 order by id limit 200;
    008+ key_len
    009- 无人工修改
    009+ ref
    010- AISQL修改建议:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, VERSION
    010+ rows
    011- FROM t_promotion_candidate_detail_mercadolibre_1
    011+ filtered
    012- WHERE source_id = 30704
    012+ Extra
    013- AND site_id = MLC
    013+ 1
    014- AND promotion_id IN (P-MLC15219004, P-MLC15561030)
    014+ SIMPLE
    015- AND STATUS = candidate
    015+ t_promotion_candidate_detail_mercadolibre_1
    016- AND id > 139530994
    016+ None
    017- AND promotion_type = DEAL
    017+ ref
    018- AND is_deleted = 0
    018+ idx_source_site_listing_id
    019- ORDER BY id
    019+ idx_source_site_listing_id
    020- LIMIT 200;
    020+ 90
    021- explain表:
    021+ const,const
    022-
    022+ 7777814
    023-
    023+ 0.01
    024-
    024+ Using index condition; Using where; Using filesort
    025-
    025+
    026-
    026+ 额外建议: 索引建议: 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【source_id = 30704】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【site_id = MLC】 100000 条记录,重复的数据有:【85513】 条,没有必要为该字段创建索引。 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【STATUS = candidate】 100000 条记录,重复的数据有:【63700】 条,没有必要为该字段创建索引。 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【promotion_type = DEAL】 100000 条记录,重复的数据有:【80106】 条,没有必要为该字段创建索引。 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【is_deleted = 0】 100000 条记录,重复的数据有:【99998】 条,没有必要为该字段创建索引。 建议添加索引:ALTER TABLE t_promotion_candidate_detail_mercadolibre_1 ADD INDEX idx_promotion_id_id(promotion_id,id); 【t_promotion_candidate_detail_mercadolibre_1】表 【promotion_id,id】字段,索引分析: +--------------------------------+--------------------------------+---------------+---------------+ | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY | +================================+================================+===============+===============+ | t_promotion_candidate_detail_m | idx_promotion_id_source_id_sit | promotion_id | 6342 | | ercadolibre_1 | e_id_version_is_deleted | | | +--------------------------------+--------------------------------+---------------+---------------+ | t_promotion_candidate_detail_m | idx_source_promotion_status | promotion_id | 23779 | | ercadolibre_1 | | | | +--------------------------------+--------------------------------+---------------+---------------+ | t_promotion_candidate_detail_m | idx_source_site_promotion | promotion_id | 29778 | | ercadolibre_1 | | | | +--------------------------------+--------------------------------+---------------+---------------+ | t_promotion_candidate_detail_m | PRIMARY | id | 26038018 | | ercadolibre_1 | | | | +--------------------------------+--------------------------------+---------------+---------------+
    027-
    028-
    029-
    030-
    031-
    032- id
    033-
    034-
    035- select_type
    036-
    037-
    038- table
    039-
    040-
    041- partitions
    042-
    043-
    044- type
    045-
    046-
    047- possible_keys
    048-
    049-
    050- key
    051-
    052-
    053- key_len
    054-
    055-
    056- ref
    057-
    058-
    059- rows
    060-
    061-
    062- filtered
    063-
    064-
    065- Extra
    066-
    067-
    068-
    069-
    070-
    071-
    072- 1
    073-
    074-
    075- SIMPLE
    076-
    077-
    078- t_promotion_candidate_detail_mercadolibre_1
    079-
    080-
    081- None
    082-
    083-
    084- ref
    085-
    086-
    087- idx_source_site_listing_id
    088-
    089-
    090- idx_source_site_listing_id
    091-
    092-
    093- 90
    094-
    095-
    096- const,const
    097-
    098-
    099- 7777814
    100-
    101-
    102- 0.01
    103-
    104-
    105- Using index condition; Using where; Using filesort
    106-
    107-
    108-
    109-
    110-
    111- 额外建议:
    112- 索引建议:
    113- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【source_id = 30704】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。
    114-
    115- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【site_id = MLC】 100000 条记录,重复的数据有:【85513】 条,没有必要为该字段创建索引。
    116-
    117- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【STATUS = candidate】 100000 条记录,重复的数据有:【63700】 条,没有必要为该字段创建索引。
    118-
    119- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【promotion_type = DEAL】 100000 条记录,重复的数据有:【80106】 条,没有必要为该字段创建索引。
    120-
    121- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【is_deleted = 0】 100000 条记录,重复的数据有:【99998】 条,没有必要为该字段创建索引。
    122-
    123- 建议添加索引:ALTER TABLE t_promotion_candidate_detail_mercadolibre_1 ADD INDEX idx_promotion_id_id(promotion_id,id);
    124-
    125- 【t_promotion_candidate_detail_mercadolibre_1】表 【promotion_id,id】字段,索引分析:
    126- +--------------------------------+--------------------------------+---------------+---------------+
    127- | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |
    128- +================================+================================+===============+===============+
    129- | t_promotion_candidate_detail_m | idx_promotion_id_source_id_sit | promotion_id | 6342 |
    130- | ercadolibre_1 | e_id_version_is_deleted | | |
    131- +--------------------------------+--------------------------------+---------------+---------------+
    132- | t_promotion_candidate_detail_m | idx_source_promotion_status | promotion_id | 23779 |
    133- | ercadolibre_1 | | | |
    134- +--------------------------------+--------------------------------+---------------+---------------+
    135- | t_promotion_candidate_detail_m | idx_source_site_promotion | promotion_id | 29778 |
    136- | ercadolibre_1 | | | |
    137- +--------------------------------+--------------------------------+---------------+---------------+
    138- | t_promotion_candidate_detail_m | PRIMARY | id | 26038018 |
    139- | ercadolibre_1 | | | |
    140- +--------------------------------+--------------------------------+---------------+---------------+
    141-
    142-
    001- 反馈人:王凯<br />
    001+ 反馈人:王凯<br /> 数据库:zhcxkj_center_strategy_comprehensive<br /> 查询时间:197.989<br /> 执行次数: 272<br /> 扫描行数:4468090<br /> 发送行数:200<br /> 指纹SQL: SELECT id , promotion_id , promotion_name , promotion_type , source_id , source_name , site_id , offer_id , pf_listing_id , original_price , price , currency_id , STATUS , meli_percent , seller_percent , create_by , update_by , create_name , update_name , create_time , update_time , is_deleted , version FROM ? FORCE INDEX ( idx_source_site_listing_id ) where source_id = ? and site_id = ? and promotion_id in ( ? , ? ) and STATUS = ? and id &gt; ? and promotion_type = ? and is_deleted = ? order by id limit ? ;<br /> 真实SQL:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, version FROM t_promotion_candidate_detail_mercadolibre_1 FORCE INDEX(idx_source_site_listing_id) where source_id = 30704 and site_id = MLC and promotion_id in ( P-MLC15219004 , P-MLC15561030 ) and STATUS = candidate and id &gt; 139530994 and promotion_type = DEAL and is_deleted = 0 order by id limit 200;<br /> 无人工修改<br /> AISQL修改建议:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, VERSION<br /> FROM t_promotion_candidate_detail_mercadolibre_1<br /> WHERE source_id = 30704<br /> AND site_id = MLC<br /> AND promotion_id IN (P-MLC15219004, P-MLC15561030)<br /> AND STATUS = candidate<br /> AND id &gt; 139530994<br /> AND promotion_type = DEAL<br /> AND is_deleted = 0<br /> ORDER BY id<br /> LIMIT 200;<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- 查询时间:197.989<br />
    003+ <th>table</th>
    004- 执行次数: 272<br />
    004+ <th>partitions</th>
    005- 扫描行数:4468090<br />
    005+ <th>type</th>
    006- 发送行数:200<br />
    006+ <th>possible_keys</th>
    007- 指纹SQL: SELECT id , promotion_id , promotion_name , promotion_type , source_id , source_name , site_id , offer_id , pf_listing_id , original_price , price , currency_id , STATUS , meli_percent , seller_percent , create_by , update_by , create_name , update_name , create_time , update_time , is_deleted , version FROM ? FORCE INDEX ( idx_source_site_listing_id ) where source_id = ? and site_id = ? and promotion_id in ( ? , ? ) and STATUS = ? and id &gt; ? and promotion_type = ? and is_deleted = ? order by id limit ? ;<br />
    007+ <th>key</th>
    008- 真实SQL:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, version FROM t_promotion_candidate_detail_mercadolibre_1 FORCE INDEX(idx_source_site_listing_id) where source_id = 30704 and site_id = MLC and promotion_id in ( P-MLC15219004 , P-MLC15561030 ) and STATUS = candidate and id &gt; 139530994 and promotion_type = DEAL and is_deleted = 0 order by id limit 200;<br />
    008+ <th>key_len</th>
    009- 无人工修改<br />
    009+ <th>ref</th>
    010- AISQL修改建议:SELECT id, promotion_id, promotion_name, promotion_type, source_id, source_name, site_id, offer_id, pf_listing_id, original_price, price, currency_id, STATUS, meli_percent, seller_percent, create_by, update_by, create_name, update_name, create_time, update_time, is_deleted, VERSION<br />
    010+ <th>rows</th>
    011- FROM t_promotion_candidate_detail_mercadolibre_1<br />
    011+ <th>filtered</th>
    012- WHERE source_id = 30704<br />
    012+ <th>Extra</th>
    013- AND site_id = MLC<br />
    013+ </tr></tbody><tbody><tr><td>1</td>
    014- AND promotion_id IN (P-MLC15219004, P-MLC15561030)<br />
    014+ <td>SIMPLE</td>
    015- AND STATUS = candidate<br />
    015+ <td>t_promotion_candidate_detail_mercadolibre_1</td>
    016- AND id &gt; 139530994<br />
    016+ <td>None</td>
    017- AND promotion_type = DEAL<br />
    017+ <td>ref</td>
    018- AND is_deleted = 0<br />
    018+ <td>idx_source_site_listing_id</td>
    019- ORDER BY id<br />
    019+ <td>idx_source_site_listing_id</td>
    020- LIMIT 200;<br />
    020+ <td>90</td>
    021- explain表:<br />
    021+ <td>const,const</td>
    022- <br />
    022+ <td>7777814</td>
    023- <br />
    023+ <td>0.01</td>
    024- <br />
    024+ <td>Using index condition; Using where; Using filesort</td>
    025- <br />
    025+ </tr></tbody></table><br />
    026- <br />
    026+ 额外建议:<br /> 索引建议:<br /> 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【source_id = 30704】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。<br /><br /> 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【site_id = MLC】 100000 条记录,重复的数据有:【85513】 条,没有必要为该字段创建索引。<br /><br /> 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【STATUS = candidate】 100000 条记录,重复的数据有:【63700】 条,没有必要为该字段创建索引。<br /><br /> 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【promotion_type = DEAL】 100000 条记录,重复的数据有:【80106】 条,没有必要为该字段创建索引。<br /><br /> 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【is_deleted = 0】 100000 条记录,重复的数据有:【99998】 条,没有必要为该字段创建索引。<br /><span style="color:#FFA500;"><br /> 建议添加索引:ALTER TABLE t_promotion_candidate_detail_mercadolibre_1 ADD INDEX idx_promotion_id_id(promotion_id,id);</span><br /><br /> 【t_promotion_candidate_detail_mercadolibre_1】表 【promotion_id,id】字段,索引分析:<br /> +--------------------------------+--------------------------------+---------------+---------------+<br /> | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |<br /> +================================+================================+===============+===============+<br /> | t_promotion_candidate_detail_m | idx_promotion_id_source_id_sit | promotion_id | 6342 |<br /> | ercadolibre_1 | e_id_version_is_deleted | | |<br /> +--------------------------------+--------------------------------+---------------+---------------+<br /> | t_promotion_candidate_detail_m | idx_source_promotion_status | promotion_id | 23779 |<br /> | ercadolibre_1 | | | |<br /> +--------------------------------+--------------------------------+---------------+---------------+<br /> | t_promotion_candidate_detail_m | idx_source_site_promotion | promotion_id | 29778 |<br /> | ercadolibre_1 | | | |<br /> +--------------------------------+--------------------------------+---------------+---------------+<br /> | t_promotion_candidate_detail_m | PRIMARY | id | 26038018 |<br /> | ercadolibre_1 | | | |<br /> +--------------------------------+--------------------------------+---------------+---------------+<br /><br /><br />
    027- <br />
    028- <table>
    029- <tbody>
    030- <tr>
    031- <th>
    032- id
    033- </th>
    034- <th>
    035- select_type
    036- </th>
    037- <th>
    038- table
    039- </th>
    040- <th>
    041- partitions
    042- </th>
    043- <th>
    044- type
    045- </th>
    046- <th>
    047- possible_keys
    048- </th>
    049- <th>
    050- key
    051- </th>
    052- <th>
    053- key_len
    054- </th>
    055- <th>
    056- ref
    057- </th>
    058- <th>
    059- rows
    060- </th>
    061- <th>
    062- filtered
    063- </th>
    064- <th>
    065- Extra
    066- </th>
    067- </tr>
    068- </tbody>
    069- <tbody>
    070- <tr>
    071- <td>
    072- 1
    073- </td>
    074- <td>
    075- SIMPLE
    076- </td>
    077- <td>
    078- t_promotion_candidate_detail_mercadolibre_1
    079- </td>
    080- <td>
    081- None
    082- </td>
    083- <td>
    084- ref
    085- </td>
    086- <td>
    087- idx_source_site_listing_id
    088- </td>
    089- <td>
    090- idx_source_site_listing_id
    091- </td>
    092- <td>
    093- 90
    094- </td>
    095- <td>
    096- const,const
    097- </td>
    098- <td>
    099- 7777814
    100- </td>
    101- <td>
    102- 0.01
    103- </td>
    104- <td>
    105- Using index condition; Using where; Using filesort
    106- </td>
    107- </tr>
    108- </tbody>
    109- </table>
    110- <br />
    111- 额外建议:<br />
    112- 索引建议:<br />
    113- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【source_id = 30704】 100000 条记录,重复的数据有:【100000】 条,没有必要为该字段创建索引。<br />
    114- <br />
    115- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【site_id = MLC】 100000 条记录,重复的数据有:【85513】 条,没有必要为该字段创建索引。<br />
    116- <br />
    117- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【STATUS = candidate】 100000 条记录,重复的数据有:【63700】 条,没有必要为该字段创建索引。<br />
    118- <br />
    119- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【promotion_type = DEAL】 100000 条记录,重复的数据有:【80106】 条,没有必要为该字段创建索引。<br />
    120- <br />
    121- 取出表 【t_promotion_candidate_detail_mercadolibre_1】 where条件表达式 【is_deleted = 0】 100000 条记录,重复的数据有:【99998】 条,没有必要为该字段创建索引。<br />
    122- <span style="color:FFA500;"><br />
    123- 建议添加索引:ALTER TABLE t_promotion_candidate_detail_mercadolibre_1 ADD INDEX idx_promotion_id_id(promotion_id,id);</span><br />
    124- <br />
    125- 【t_promotion_candidate_detail_mercadolibre_1】表 【promotion_id,id】字段,索引分析:<br />
    126- +--------------------------------+--------------------------------+---------------+---------------+<br />
    127- | TABLE_NAME | INDEX_NAME | COLUMN_NAME | CARDINALITY |<br />
    128- +================================+================================+===============+===============+<br />
    129- | t_promotion_candidate_detail_m | idx_promotion_id_source_id_sit | promotion_id | 6342 |<br />
    130- | ercadolibre_1 | e_id_version_is_deleted | | |<br />
    131- +--------------------------------+--------------------------------+---------------+---------------+<br />
    132- | t_promotion_candidate_detail_m | idx_source_promotion_status | promotion_id | 23779 |<br />
    133- | ercadolibre_1 | | | |<br />
    134- +--------------------------------+--------------------------------+---------------+---------------+<br />
    135- | t_promotion_candidate_detail_m | idx_source_site_promotion | promotion_id | 29778 |<br />
    136- | ercadolibre_1 | | | |<br />
    137- +--------------------------------+--------------------------------+---------------+---------------+<br />
    138- | t_promotion_candidate_detail_m | PRIMARY | id | 26038018 |<br />
    139- | ercadolibre_1 | | | |<br />
    140- +--------------------------------+--------------------------------+---------------+---------------+<br />
    141- <br />
    142- <br />
  6. 2025-10-14 14:51:09, 由 陈莉珍 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "chenlizhen",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "chenlizhen"。
    修改了 关闭日期,旧值为 "",新值为 "2025-10-14 14:51:09"。
所属项目 技术中心-需求池
所属模块 多平台   mercado
所属计划
所属迭代
Bug类型 非BUG-纯属误判
严重程度 一般
优先级 P1
Bug状态 已关闭
业务部门 总经办
影响功能
开发责任人 王凯
测试责任人 王凯
解决时效 1.41
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2025-10-14 14:51:09
截止日期 0000-00-00
上线时间 2025-10-14 10:05:38
上线时效 1.41
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 陈莉珍 于 2025-10-14 08:40:48
影响环境 生产环境-业务反馈
由谁解决 王金锋 于 2025-10-14 10:05:38
解决版本 主干
解决方案 非BUG-纯属误判
由谁关闭 陈莉珍 于 2025-10-14 14:51:09
最后修改 陈莉珍 于 2025-10-14 14:51:09
相关Bug