{
  "slow_queries": [
    {
      "digest": "2d142ccf344650a9226ea89d072cdae8eeb850fff82d96e8bf0406cdf52ee69f",
      "sample_sql": "SELECT `dh_active_receive_logs`.`id`,`dh_active_receive_logs`.`activeType`,`dh_active_receive_logs`.`useridx`,`dh_active_receive_logs`.`username`,`dh_active_receive_logs`.`account_type`,`dh_active_receive_logs`.`usercurrency`,`dh_active_receive_logs`.`activeid`,`dh_active_receive_logs`.`activename`,`dh_active_receive_logs`.`template`,`dh_active_receive_logs`.`ruleid`,`dh_active_receive_logs`.`log_unique_no`,`dh_active_receive_logs`.`amount`,`dh_active_receive_logs`.`reward`,`dh_active_receive_logs`.`bonus_text`,`dh_active_receive_logs`.`bonus_enum`,`dh_active_receive_logs`.`bonus_big_enum`,`dh_active_receive_logs`.`orderno`,`dh_active_receive_logs`.`log_createtime`,`dh_active_receive_logs`.`log_update`,`dh_active_receive_logs`.`can_receive_time`,`dh_active_receive_logs`.`receive_time`,`dh_active_receive_logs`.`period_time`,`dh_active_receive_logs`.`log_status`,`dh_active_receive_logs`.`log_category`,`dh_active_receive_logs`.`log_category_sub`,`dh_active_receive_logs`.`audit`,`dh_active_receive_logs`.`handle_condition_type`,`dh_active_receive_logs`.`receive_device_type`,`dh_active_receive_logs`.`receive_device_login_type`,`dh_active_receive_logs`.`receive_ip`,`dh_active_receive_logs`.`receive_deviceId`,`dh_active_receive_logs`.`receive_finger`,`dh_active_receive_logs`.`device_info`,`dh_active_receive_logs`.`log_text`,`dh_active_receive_logs`.`error_msg`,`dh_active_receive_logs`.`receive_remark`,`dh_active_receive_logs`.`receive_time_remark`,`dh_active_receive_logs`.`front_remark`,`dh_active_receive_logs`.`back_remark`,`dh_active_receive_logs`.`audit_platform_category_game`,`dh_active_receive_logs`.`creator`,`dh_active_receive_logs`.`create_time`,`dh_active_receive_logs`.`update_time`,`dh_active_receive_logs`.`operator`,`dh_active_receive_logs`.`is_send`,`dh_active_receive_logs`.`periodday`,`dh_active_receive_logs`.`locker`,`dh_active_receive_logs`.`reward_type`,`dh_active_receive_logs`.`is_set_audit`,`dh_active_receive_logs`.`is_set_audit_platform`,`dh_active_receive_logs`.`allowed_device_type`,`dh_active_receive_logs`.`activity`,`dh_active_receive_logs`.`regpkgid`,`dh_active_receive_logs`.`red_img_type`,`dh_active_receive_logs`.`bit_flag`,`dh_active_receive_logs`.`site_code` FROM `dh_active_receive_logs` WHERE `bonus_big_enum` = ? AND log_status IN (?,?,?) AND reward_type IN (?,?,?) AND (period_time > ? AND period_time < ?) AND `site_code` = ? AND `dh_active_receive_logs`.`id` > ? ORDER BY `dh_active_receive_logs`.`id` LIMIT 1000 [arguments: (10, 0, 6, 7, 1, 2, 3, 1784343612, 1784602812, \"11569\", 572381686966)];",
      "exec_count": "404",
      "max_query_time": "14.78820321",
      "avg_query_time": "2.5494407756237623",
      "total_process_time": "4585.191183972999",
      "total_wait_time": "17.205966522000008",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "18576e217f5f93fa2a934f84290447caa4b783cab493503c4ad71c912ea16930",
      "sample_sql": "SELECT * FROM `dh_audit_record` WHERE (user_id = ? and site_code = ?) AND status in (?,?,?) AND charge_time < ? ORDER BY charge_time asc,id asc [arguments: (677577915, \"5073\", 1, 2, 7, \"2026-07-21 11:03:08\")];",
      "exec_count": "123",
      "max_query_time": "1.3205869049999999",
      "avg_query_time": "1.0523030979674795",
      "total_process_time": "0.036062399",
      "total_wait_time": "0.020012122999999996",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "9505cacb7c710ed17125fcc6cb3669e8ddca6c8cd8af6a31f6b3cd64604c3098",
      "sample_sql": "COMMIT;",
      "exec_count": "115",
      "max_query_time": "6.8889723830000005",
      "avg_query_time": "1.64313527641739",
      "total_process_time": "",
      "total_wait_time": "",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "7d75919b6fcc6bbbc8516539ac4a165887c4a9765b9e986314ef43ab77267874",
      "sample_sql": "SELECT ? as create_ymd,t2.register_currency as currency,IFNULL(t2.club_id,0) as club_id,count(distinct t1.useridx) as login_persons FROM dh_user_action_logs as t1 left join dh_account_basic as t2 on t2.useridx = t1.useridx and t2.site_code = t1.site_code WHERE (t1.create_time >= ? and t1.create_time < ?) AND (t1.name = 25 and t1.action = 0 and t1.result = 0) AND t1.site_code = ? GROUP BY t2.register_currency,IFNULL(t2.club_id,0) [arguments: (20260720, 1784516400, 1784602799, \"11068\")];",
      "exec_count": "95",
      "max_query_time": "5.031075317",
      "avg_query_time": "1.5531494416736842",
      "total_process_time": "1374.349892168",
      "total_wait_time": "61.79836369800002",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "4afa34fab28500dd78a9d5a531dcf93b2c8f36f525d970c99028638c243f2c3b",
      "sample_sql": "SELECT a.id,a.site_code,a.useridx,a.username,a.register_currency currency,a.realname_secret,a.account_type ,a.user_status,a.loan_status,a.game_gold,a.member_level,a.vip_level,        a.register_time,a.regpkgid,a.register_ip,a.register_ip_addr,a.register_device_id,a.verify_time,a.birthday_secret,a.area_code,a.phone_hash,a.restrict_flag,a.portrait2_id,a.gender FROM  dh_account_basic a     WHERE a.site_code=?  AND a.useridx in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,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?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?(len:106350);",
      "exec_count": "71",
      "max_query_time": "1.646377915",
      "avg_query_time": "1.2901790304788732",
      "total_process_time": "",
      "total_wait_time": "",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "67a28431a20b995bf91fa37e2691be34a00d1c353e1f0efc9c67e418dd499878",
      "sample_sql": "SELECT t1.register_currency as currency,t1.regpkgid as channel_id,ifnull(t2.parent_cids, '[]') as parent_cids,t3.register_os_type,t0.valid_bet FROM dh_user_day_report t0 left join dh_account_basic as t1 on t0.user_idx = t1.useridx and t0.site_code = t1.site_code left join dh_account_ext_channelinfo t2 on t1.useridx = t2.useridx and t1.site_code = t2.site_code left join dh_account_ext_logininfo as t3 on t3.useridx = t1.useridx and t3.site_code = t1.site_code WHERE (t0.create_ymd = ? and t0.valid_bet > 0) AND t0.site_code = ? AND t1.account_type in (2,5,9,11,15,16) [arguments: (20260720, \"12103\")];",
      "exec_count": "64",
      "max_query_time": "3.924006009",
      "avg_query_time": "1.6827184788281246",
      "total_process_time": "960.3152372189999",
      "total_wait_time": "82.34798381699996",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "ad0fb7bc6b492b9ca4149c4d900432b96ea994ef642b409fbf690b85cc05ad42",
      "sample_sql": "SELECT t.useridx, t.username, t.regpkgid, t.currency, t.parent_useridx, ag.calc_level FROM dh_promote_myteam_summary_basic t inner join dh_promote_agentid_currency ag on ag.agent_id=t.agent_id and ag.currency=t.currency and ag.site_code=t.site_code WHERE t.site_code = ? [arguments: \"5033\"];",
      "exec_count": "63",
      "max_query_time": "4.444876169",
      "avg_query_time": "1.6440543457619041",
      "total_process_time": "0.14854329500000008",
      "total_wait_time": "0.021829287",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "82e12f641a02f5f1b77c6e122f529f4b3585021f9ac0f23a6577dc8c0a9bd3bf",
      "sample_sql": "/* job 42/270 */ UPDATE `dh_app_5073`.`dh_active_user_coupon` SET `is_delete`=1, `status`=3, `update_time`=1784602824, `expire_time`=IF((`expire_time` = 0), 1784602824, `expire_time`), `front_remark`='' WHERE (`id` BETWEEN 148595575 AND 148635596 AND ((`coupon_id` IN (167135184500000,167135207470000,167135228590000) AND `status` IN (0,3)) AND (`is_delete` = 0)));",
      "exec_count": "60",
      "max_query_time": "5.420459445",
      "avg_query_time": "4.5125965741666665",
      "total_process_time": "981.1635344570001",
      "total_wait_time": "36.372400758999994",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "7924fca72e8a0e88a3b11e2bc8ee97fcf878709dc77b3f0501fd8c480b559cda",
      "sample_sql": "select IFNULL(game_gold, 0.0) from dh_account_basic where useridx = ? and site_code = ? for update [arguments: (337861232, \"5021\")];",
      "exec_count": "49",
      "max_query_time": "5.148136748",
      "avg_query_time": "2.793413138387755",
      "total_process_time": "",
      "total_wait_time": "",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "64af2b19551b6d5a2e7e443e0f9dd35569e14758807a0c46ba159202a3118e6a",
      "sample_sql": "SELECT t1.register_currency as currency,t1.regpkgid as channel_id,ifnull(t2.parent_cids, '[]') as parent_cids,t3.register_os_type,t0.deposit FROM dh_user_day_report t0 left join dh_account_basic as t1 on t0.user_idx = t1.useridx and t0.site_code = t1.site_code left join dh_account_ext_channelinfo t2 on t1.useridx = t2.useridx and t1.site_code = t2.site_code left join dh_account_ext_logininfo as t3 on t3.useridx = t1.useridx and t3.site_code = t1.site_code WHERE (t0.create_ymd = ? and t0.deposit > 0) AND t0.site_code = ? AND t1.account_type in (2,5,9,11,15,16) [arguments: (20260720, \"12103\")];",
      "exec_count": "46",
      "max_query_time": "5.8615342",
      "avg_query_time": "1.6563118749999994",
      "total_process_time": "637.3446238430001",
      "total_wait_time": "44.410831255999994",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "4b591fffecb10be4b200211f6c1dc64ea071c4054ca7c5d0095e43a206dda448",
      "sample_sql": "SELECT t1.register_currency as currency,t1.regpkgid as channel_id,ifnull(t2.parent_cids, '[]') as parent_cids,t3.register_os_type,t0.discount_amount FROM dh_user_day_report t0 left join dh_account_basic as t1 on t0.user_idx = t1.useridx and t0.site_code = t1.site_code left join dh_account_ext_channelinfo t2 on t1.useridx = t2.useridx and t1.site_code = t2.site_code left join dh_account_ext_logininfo as t3 on t3.useridx = t1.useridx and t3.site_code = t1.site_code WHERE (t0.create_ymd = ? and t0.discount_amount <> 0) AND t0.site_code = ? AND t1.account_type in (2,5,9,11,15,16) [arguments: (20260720, \"12103\")];",
      "exec_count": "43",
      "max_query_time": "4.36390059",
      "avg_query_time": "1.7530458979999997",
      "total_process_time": "722.2464331320001",
      "total_wait_time": "87.29113150600001",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "e8f29cc443899e0d753cf61df58e96ff40cda35542da72627e27fd4b89e9da82",
      "sample_sql": "SELECT b.parent_useridx AS useridx,a.settle_day as stats_day,a.game_category_id,SUM(bet_total) AS totalDirectBet,SUM(profit_total) AS totalDirectProfit,COUNT(DISTINCT CASE WHEN bet_total > 0 THEN a.useridx ELSE NULL END) AS totalDirectBetPerson,COUNT(DISTINCT CASE WHEN profit_total <> 0 THEN a.useridx ELSE NULL END) AS totalDirectProfitPerson FROM dh_account_ext_parentinfo b inner join dh_report_bet_summary a on a.useridx=b.useridx and a.site_code=b.site_code and a.game_category_id IN (?,?,?,?,?,?,?,?,?) and a.settle_day = 20260720 WHERE b.site_code = ? GROUP BY b.parent_useridx,a.game_category_id [arguments: (1, 2, 3, 4, 5, 6, 7, 8, 11, \"5057\")];",
      "exec_count": "39",
      "max_query_time": "7.971783417",
      "avg_query_time": "2.0640804506666663",
      "total_process_time": "312.0492051780001",
      "total_wait_time": "0.9287666260000002",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "184cd9198ce709b00f603d86652a165e443cf95471d3fb4f766f4fb2be9fa534",
      "sample_sql": "SELECT 20260720 as create_ymd,t1.member_currency as currency,IFNULL(t2.club_id,0) as club_id,sum(case when t1.payline_id = 1 and t1.payline_id_detail = 0 then t1.real_amount end) as online_deposit,count(distinct case when t1.payline_id = 1 and t1.payline_id_detail = 0 then t1.username end) as online_deposit_persons,sum(case when t1.payline_id = 2 and t1.payline_id_detail = 0 then t1.real_amount end) as transfer_deposit,sum(case when t1.payline_id = 4 and t1.payline_id_detail = 0 then t1.real_amount end) as manual_deposit,sum(case when t1.payline_id = 5 and t1.payline_id_detail = 1 then t1.real_amount end) as ys_deposit,count(distinct case when t1.payline_id = 5 and t1.payline_id_detail = 1 then t1.username end) as ys_deposit_persons,sum(case when t1.payline_id = 7 and t1.payline_id_detail = 0 then t1.real_amount end) as withdraw_deposit FROM dh_pay_order as t1 left join dh_account_basic as t2 on t2.useridx = t1.username and t2.site_code = t1.site_code WHERE (t1.notify_time >= ? and t1.notify_time <= ?) AND t1.pay_status in (2,4) AND t1.site_code = ? AND t2.account_type in (2,5,9,11,15,16) GROUP BY t1.member_currency,IFNULL(t2.club_id,0) [arguments: (1784516400, 1784602799, \"5617\")];",
      "exec_count": "35",
      "max_query_time": "5.524421271",
      "avg_query_time": "1.6838846006571428",
      "total_process_time": "506.54017921200006",
      "total_wait_time": "24.408356607",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "9a79d3bceafdec75e6c59ed6687bdb7c2993a525a13cbfc134306732bc254685",
      "sample_sql": "SELECT `id` FROM `dh_active_receive_logs` WHERE `activeid` IN (?) AND usercurrency = ? AND activetype = ? AND (update_time >= ? and update_time <= ?) AND  site_code IN (?) AND log_category in (?) AND log_status in (?) AND `dh_active_receive_logs`.`id` > ? ORDER BY `dh_active_receive_logs`.`id` LIMIT 50000 [arguments: (3194, \"BRL\", 1, 1782010800, 1784602909, \"5091\", 3, 6, 572418339769)];",
      "exec_count": "32",
      "max_query_time": "3.233027491",
      "avg_query_time": "2.566378082125",
      "total_process_time": "837.6379534130001",
      "total_wait_time": "6.192416090999998",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "5501da3c9fe97466d5a8201a2e3ed3f29318996f69dc212350f3dde15f96f884",
      "sample_sql": "/* job 1/20 */ DELETE FROM `dh_app_5091`.`dh_active_receive_logs` FORCE INDEX (`idx_active_receive_logs_activeid_periodTime_sitecode`) WHERE (`dh_active_receive_logs`.`_tidb_rowid` BETWEEN 572388703528 AND 576461324692226626 AND (((((((`activetype` = 1) AND (`site_code` = '5091')) AND (`log_status` = -1)) AND (`activeid` = 3122)) AND `log_category` IN (0,1,2,4)) AND (`period_time` > 0)) AND (`period_time` <= 1784602877)));",
      "exec_count": "29",
      "max_query_time": "7.566851072",
      "avg_query_time": "2.456811108758621",
      "total_process_time": "1.322696785",
      "total_wait_time": "0.040751455000000006",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "9a4170a059f3113e196bdac9c156d6cecf3ccbef8eb238b878d04e61aa7d9741",
      "sample_sql": "START TRANSACTION;",
      "exec_count": "27",
      "max_query_time": "1.3199752820000001",
      "avg_query_time": "1.115211664",
      "total_process_time": "",
      "total_wait_time": "",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "0c233f56781b779a25cf1732e0e6e058942f9fc56557c6d1af42ec18fef399d1",
      "sample_sql": "SELECT     settle_day,    ? as site_code,    currency,    game_platform_id as platform_id,    game_category_id as category_id,    sum(valid_bet_total) as valid_bet,    -sum(profit_total) as profit_loss,    sum(profit_total) as win_lose,    max(max_profit) as max_profit,    min(min_profit) as min_profit,    count(case when valid_bet_total>=0 then 1 end) as bet_persons,    count(case when profit_total>=0 then 1 end) as profit_persons,    count(case when profit_total<0 then 1 end) as loss_persons FROM (SELECT    settle_day,   useridx,   currency,   game_platform_id,   game_category_id,   sum(valid_bet_total) as valid_bet_total,   sum(profit_total) as profit_total,   max(max_profit) as max_profit,   min(min_profit) as min_profit   FROM `dh_report_bet_summary` WHERE settle_day in (?,?,?) AND site_code = ? GROUP BY settle_day,useridx,game_category_id,game_platform_id,currency) as t GROUP BY settle_day,currency, platform_id, category_id ORDER BY settle_day asc [arguments: (\"5119\", 20260719, 20260720, 20260721, \"5119\")];",
      "exec_count": "27",
      "max_query_time": "5.066149055",
      "avg_query_time": "1.4326756810740737",
      "total_process_time": "381.5071873329999",
      "total_wait_time": "5.096143475999999",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "dbd123f9e3a21bc6c454cb88bea2e5744592a4e011b2f68ed554d0abfd9856c7",
      "sample_sql": "SELECT COUNT(1) as sum_num , SUM(reward) as sum_reward, usercurrency as currency,site_code FROM `dh_active_receive_logs` WHERE `activeid` IN (?) AND activetype = ? AND  site_code IN (?,?,?) AND log_category in (?) AND log_status in (?,?,?,?,?,?,?,?,?,?) GROUP BY `usercurrency`,`site_code` [arguments: (3429, 1, \"5092\", \"9352\", \"12261\", 3, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)];",
      "exec_count": "23",
      "max_query_time": "11.659753971",
      "avg_query_time": "3.755588064391304",
      "total_process_time": "966.771765601",
      "total_wait_time": "1.846448685",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "e13195c734caeec21729f80b9b9bf2823f8545f5f307219b1c7909b0a278d4ac",
      "sample_sql": "SHOW STATS_META WHERE db_name != 'dh_app_default' AND table_name IN ('dh_account_ext_authinfo','dh_account_ext_channelinfo','dh_account_ext_inviterinfo','dh_account_ext_yuebaoinfo','dh_account_jwt_token','dh_account_webauthn','dh_active','dh_active_activity_info','dh_active_activity_records','dh_active_bet_details','dh_active_bet_statistic','dh_active_bet_total','dh_active_blindbox_config','dh_active_blindbox_free_records','dh_active_blindbox_info','dh_active_blindbox_open_box_record','dh_active_blindbox_orders','dh_active_blindbox_user_box_info','dh_active_blindbox_user_summary','dh_active_category_new','dh_active_chop_one_knife','dh_active_chop_one_knife_new','dh_active_chop_one_knife_new_details','dh_active_chop_one_knife_new_record','dh_active_chop_one_knife_record','dh_active_common_config','dh_active_common_setting','dh_active_coupon','dh_active_cut_a_deal','dh_active_cut_a_deal_details','dh_active_day_return_code_record','dh_active_details_experience','dh_active_discount_code','dh_active_discount_code_only_log','dh_active_discount_log','dh_active_discount_log_summary','dh_active_discount_phone','dh_active_discount_phone_log','dh_active_domain_log','dh_active_guess_matchdata','dh_active_guessintegral_change_history','dh_active_guessintegral_info','dh_active_guessintegral_record','dh_active_history_version','dh_active_img_group','dh_active_investment','dh_active_last_img','dh_active_luckyintegral_info','dh_active_luckyintegral_record','dh_active_luckyorder_kafka_consume','dh_active_pop_confirm','dh_active_promote_profit','dh_active_promote_summary','dh_active_ranking','dh_active_receive_details','dh_active_receive_device_log','dh_active_receive_failed','dh_active_receive_logs_summary','dh_active_recharge_fund_recharge','dh_active_recharge_fund_reward','dh_active_recharge_fund_setting','dh_active_recharge_fund_setting_history','dh_active_redpack_info','dh_active_request_log','dh_active_reward_points_add','dh_active_reward_points_trans_log','dh_active_reward_points_user','dh_active_show_img_info','dh_active_sign_info','dh_active_surp_scene_config','dh_active_surp_setting','dh_active_surp_user_reward','dh_active_svip_change_log','dh_active_svip_config','dh_active_svip_info','dh_active_svip_pay_info','dh_active_svip_setting','dh_active_template','dh_active_turntable_config','dh_active_turntable_details','dh_active_turntable_info','dh_active_turntable_orders','dh_active_turntable_records','dh_active_user_address','dh_active_word_log','dh_active_word_settle','dh_agentmode','dh_blacklist','dh_club_agent_basic','dh_club_agent_report','dh_club_agent_summary','dh_club_app','dh_club_bet_order','dh_club_bill','dh_club_bill_record','dh_club_config','dh_club_contact','dh_club_domain','dh_club_finance','dh_club_info','dh_club_loan_quota_allocate','dh_club_loan_quota_log','dh_club_margin_record','dh_club_member','dh_club_member_adjust_record','dh_club_member_approve','dh_club_member_balance','dh_club_member_commission','dh_club_member_commission_detail','dh_club_member_loan_record','dh_club_member_quota_record','dh_club_member_rebate','dh_club_pay_channel','dh_club_period_logs','dh_club_rate_adjust_record','dh_club_recharge_order','dh_club_withdraw_order','dh_club_withdraw_setting','dh_club_xxl_record','dh_config','dh_config_site','dh_cpf_cost_daily','dh_cpf_validate_logs','dh_day_pay_amount','dh_day_report','dh_discouraged_account','dh_dupl_reward_config','dh_dupl_reward_logs','dh_email_account','dh_email_language','dh_email_recall_account','dh_email_recall_email','dh_email_recall_ext','dh_email_recall_rule','dh_email_recall_rule_ext','dh_email_recall_task','dh_jpush_recall','dh_kyc_daily_stat','dh_kyc_legitimuz_face_log','dh_kyc_legitimuz_log','dh_kyc_provider_config','dh_kyc_result_log','dh_kyc_topph_result_log','dh_kyc_user_stat','dh_kyc_zoloz_connect_enroll_log','dh_kyc_zoloz_connect_log','dh_kyc_zoloz_realid_init_log','dh_kyc_zoloz_realid_result_log','dh_level_setting','dh_loan_collection','dh_loan_collection_detail','dh_loan_credit_adjustment_records','dh_loan_member_remark_logs','dh_loan_member_tag','dh_loan_members','dh_lo(len:8924);",
      "exec_count": "19",
      "max_query_time": "1.740502722",
      "avg_query_time": "1.6222989400526313",
      "total_process_time": "",
      "total_wait_time": "",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    },
    {
      "digest": "4ec00c4c3dfb90e450cbaeb8b12a41999f4a62b3481f6d3c1f01453bfba6ff7d",
      "sample_sql": "SHOW STATS_HEALTHY WHERE db_name LIKE 'dh_app_%' AND db_name != 'dh_app_default' AND table_name IN ('dh_account_ext_authinfo','dh_account_ext_channelinfo','dh_account_ext_inviterinfo','dh_account_ext_yuebaoinfo','dh_account_jwt_token','dh_account_webauthn','dh_active','dh_active_activity_info','dh_active_activity_records','dh_active_bet_details','dh_active_bet_statistic','dh_active_bet_total','dh_active_blindbox_config','dh_active_blindbox_free_records','dh_active_blindbox_info','dh_active_blindbox_open_box_record','dh_active_blindbox_orders','dh_active_blindbox_user_box_info','dh_active_blindbox_user_summary','dh_active_category_new','dh_active_chop_one_knife','dh_active_chop_one_knife_new','dh_active_chop_one_knife_new_details','dh_active_chop_one_knife_new_record','dh_active_chop_one_knife_record','dh_active_common_config','dh_active_common_setting','dh_active_coupon','dh_active_cut_a_deal','dh_active_cut_a_deal_details','dh_active_day_return_code_record','dh_active_details_experience','dh_active_discount_code','dh_active_discount_code_only_log','dh_active_discount_log','dh_active_discount_log_summary','dh_active_discount_phone','dh_active_discount_phone_log','dh_active_domain_log','dh_active_guess_matchdata','dh_active_guessintegral_change_history','dh_active_guessintegral_info','dh_active_guessintegral_record','dh_active_history_version','dh_active_img_group','dh_active_investment','dh_active_last_img','dh_active_luckyintegral_info','dh_active_luckyintegral_record','dh_active_luckyorder_kafka_consume','dh_active_pop_confirm','dh_active_promote_profit','dh_active_promote_summary','dh_active_ranking','dh_active_receive_details','dh_active_receive_device_log','dh_active_receive_failed','dh_active_receive_logs_summary','dh_active_recharge_fund_recharge','dh_active_recharge_fund_reward','dh_active_recharge_fund_setting','dh_active_recharge_fund_setting_history','dh_active_redpack_info','dh_active_request_log','dh_active_reward_points_add','dh_active_reward_points_trans_log','dh_active_reward_points_user','dh_active_show_img_info','dh_active_sign_info','dh_active_surp_scene_config','dh_active_surp_setting','dh_active_surp_user_reward','dh_active_svip_change_log','dh_active_svip_config','dh_active_svip_info','dh_active_svip_pay_info','dh_active_svip_setting','dh_active_template','dh_active_turntable_config','dh_active_turntable_details','dh_active_turntable_info','dh_active_turntable_orders','dh_active_turntable_records','dh_active_user_address','dh_active_word_log','dh_active_word_settle','dh_agentmode','dh_blacklist','dh_club_agent_basic','dh_club_agent_report','dh_club_agent_summary','dh_club_app','dh_club_bet_order','dh_club_bill','dh_club_bill_record','dh_club_config','dh_club_contact','dh_club_domain','dh_club_finance','dh_club_info','dh_club_loan_quota_allocate','dh_club_loan_quota_log','dh_club_margin_record','dh_club_member','dh_club_member_adjust_record','dh_club_member_approve','dh_club_member_balance','dh_club_member_commission','dh_club_member_commission_detail','dh_club_member_loan_record','dh_club_member_quota_record','dh_club_member_rebate','dh_club_pay_channel','dh_club_period_logs','dh_club_rate_adjust_record','dh_club_recharge_order','dh_club_withdraw_order','dh_club_withdraw_setting','dh_club_xxl_record','dh_config','dh_config_site','dh_cpf_cost_daily','dh_cpf_validate_logs','dh_day_pay_amount','dh_day_report','dh_discouraged_account','dh_dupl_reward_config','dh_dupl_reward_logs','dh_email_account','dh_email_language','dh_email_recall_account','dh_email_recall_email','dh_email_recall_ext','dh_email_recall_rule','dh_email_recall_rule_ext','dh_email_recall_task','dh_jpush_recall','dh_kyc_daily_stat','dh_kyc_legitimuz_face_log','dh_kyc_legitimuz_log','dh_kyc_provider_config','dh_kyc_result_log','dh_kyc_topph_result_log','dh_kyc_user_stat','dh_kyc_zoloz_connect_enroll_log','dh_kyc_zoloz_connect_log','dh_kyc_zoloz_realid_init_log','dh_kyc_zoloz_realid_result_log','dh_level_setting','dh_loan_collection','dh_loan_collection_detail','dh_loan_credit_adjustment_records','dh_loan_member_remark_logs','dh_loan_membe(len:8955);",
      "exec_count": "19",
      "max_query_time": "6.6845546670000004",
      "avg_query_time": "6.031770285105264",
      "total_process_time": "",
      "total_wait_time": "",
      "source": "slow_queries",
      "title": "slow_query_top_by_exec_count",
      "query_sql": "SELECT\n  digest,\n  any_value(query) AS sample_sql,\n  COUNT(*) AS exec_count,\n  MAX(query_time) AS max_query_time,\n  AVG(query_time) AS avg_query_time,\n  SUM(process_time) AS total_process_time,\n  SUM(wait_time) AS total_wait_time\nFROM clinic_data_proxy.slow_query_logs\nWHERE date IN ('20260721')\n  AND time >= 1784602800\n  AND time <= 1784603100\nGROUP BY digest\nORDER BY exec_count DESC\nLIMIT 20"
    }
  ],
  "topsql": [],
  "decoded_plan": null
}
