重现步骤
反馈人:系统管理-李冠
严重级别:一般
所属项目:亚马逊优惠券活动
问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time >= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;)
解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time >= '2025-06-10 23:59:59' and id> N ORDER BY id DESC LIMIT 100;)
历史记录  
  1. 2025-06-13 11:07:31, 由 陈莉珍 创建。
  2. 2025-06-13 11:13:21, 由 陈莉珍 编辑。
    修改了 所属项目,旧值为 "51",新值为 "52"。
    修改了 所属模块,旧值为 "0",新值为 "1838"。
    修改了 业务部门,旧值为 "0",新值为 "2"。
    修改了 解决时效,旧值为 "0",新值为 "-1"。
    修改了 影响环境,旧值为 "pro627",新值为 "trunk"。
    修改了 重现步骤,区别为:
    001- 反馈人:系统管理
    001+ 反馈人:系统管理 严重级别:一般 所属项目:亚马逊优惠券活动 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time >= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;) 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time >= '2025-06-10 23:59:59' and id> N ORDER BY id DESC LIMIT 100;)
    002- 严重级别:一般
    003- 所属项目:亚马逊优惠券活动
    004- 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time >= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;)
    005- 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time >= '2025-06-10 23:59:59' and id> N ORDER BY id DESC LIMIT 100;)
    001- 反馈人:系统管理<br />
    001+ 反馈人:系统管理<br /> 严重级别:一般<br /> 所属项目:亚马逊优惠券活动<br /> 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;)<br /> 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' and id&gt; N ORDER BY id DESC LIMIT 100;)
    002- 严重级别:一般<br />
    003- 所属项目:亚马逊优惠券活动<br />
    004- 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;)<br />
    005- 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' and id&gt; N ORDER BY id DESC LIMIT 100;)
  3. 2025-06-13 11:16:57, 由 陈莉珍 编辑。
    修改了 解决时效,旧值为 "0",新值为 "-1"。
    修改了 重现步骤,区别为:
    001- 反馈人:系统管理 严重级别:一般 所属项目:亚马逊优惠券活动 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;) 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' and id&gt; N ORDER BY id DESC LIMIT 100;)
    001+ 反馈人:系统管理-李冠 严重级别:一般 所属项目:亚马逊优惠券活动 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;) 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' and id&gt; N ORDER BY id DESC LIMIT 100;)
    001- 反馈人:系统管理<br /> 严重级别:一般<br /> 所属项目:亚马逊优惠券活动<br /> 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;)<br /> 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' and id&gt; N ORDER BY id DESC LIMIT 100;)
    001+ 反馈人:系统管理-李冠<br /> 严重级别:一般<br /> 所属项目:亚马逊优惠券活动<br /> 问题原因:深度分页,造成慢SQL,影响数据库性能,SQL为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' ORDER BY id DESC LIMIT 45900,100;)<br /> 解决方案: SQL优化为(SELECT * FROM t_amazon_discount_activity tada WHERE (tada.is_crawl_detail = 1 OR (tada.is_crawl_detail = 2 AND tada.status = 1)) AND tada.end_time &gt;= '2025-06-10 23:59:59' and id&gt; N ORDER BY id DESC LIMIT 100;)
  4. 2025-06-13 16:25:19, 由 陈莉珍 编辑。
    修改了 解决时效,旧值为 "0",新值为 "-1"。
    修改了 影响环境,旧值为 "trunk",新值为 "pro627"。
  5. 2025-06-13 17:56:14, 由 劳世仙 指派给 王翔宇。
    修改了 指派给,旧值为 "guanyilin",新值为 "wangxiangyu"。
  6. 2025-06-13 17:59:41, 由 王翔宇 指派给 林泓武。
    修改了 指派给,旧值为 "wangxiangyu",新值为 "linhongwu"。
  7. 2025-06-13 18:23:17, 由 林泓武 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决日期,旧值为 "",新值为 "2025-06-13 18:22:43"。
    修改了 指派给 ,旧值为 "linhongwu",新值为 "chenlizhen"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "linhongwu"。
    修改分页查询方式
  8. 2025-06-13 18:24:26, 由 陈莉珍 编辑。
    修改了 开发责任人,旧值为 "",新值为 "linhongwu"。
    修改了 测试责任人,旧值为 "",新值为 "linhongwu"。
    修改了 解决时效 ,旧值为 "0",新值为 "7.25"。
    修改了 上线时间 ,旧值为 "0000-00-00 00:00:00",新值为 "2025-06-13 18:24"。
    修改了 上线时效 ,旧值为 "-1",新值为 "7.27"。
  9. 2025-06-13 18:24:31, 由 陈莉珍 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "chenlizhen",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "chenlizhen"。
    修改了 关闭日期,旧值为 "",新值为 "2025-06-13 18:24:31"。
所属项目 智能中心-需求池
所属模块 ERP系统(销售管理)
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P2
Bug状态 已关闭
业务部门 总经办
影响功能
开发责任人 林泓武
测试责任人 林泓武
解决时效 7.25
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2025-06-13 18:24:31
截止日期 0000-00-00
上线时间 2025-06-13 18:24:00
上线时效 7.27
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 陈莉珍 于 2025-06-13 11:07:31
影响环境 生产环境-业务反馈
由谁解决 林泓武 于 2025-06-13 18:22:43
解决版本
解决方案 程序BUG
由谁关闭 陈莉珍 于 2025-06-13 18:24:31
最后修改 陈莉珍 于 2025-06-13 18:24:31
相关Bug