{
  "slow_queries": [
    {
      "source": "slow_query",
      "digest": "df75e3f4f665757905d994cc2ec03f19bf0dbb8da34ba543e00cc31c04df79ef",
      "sql_preview": "UPDATE `dh_jpush_recall` SET `state`=? WHERE task_id = ? AND useridx in (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?",
      "exec_count": "175",
      "avg_time": "1.40s",
      "max_time": "1.62s",
      "max_mem": "1121235",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=df75e3f4f665757905d994cc2ec03f19bf0dbb8da34ba543e00cc31c04df79ef&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6",
      "sql_preview": "SHOW STATS_HEALTHY where db_name like 'dh_app_%';",
      "exec_count": "153",
      "avg_time": "1.90s",
      "max_time": "3.64s",
      "max_mem": "84960",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=f526485d768d4a4f20712aa22ffb1268252f66635f5c232d257e656b0a6bdba6&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "7fd49b5b16a22325563c8a9ddd3dbc7cc4228261a497b49a349085f030818699",
      "sql_preview": "WITH d_table AS (SELECT useridx, parent_useridx, site_code FROM `dh_promote_myteam_direct` WHERE valid_to >= ? AND valid_from <= ? AND parent_useridx !=0 AND site_code = ?) SELECT useridx,max_day FROM",
      "exec_count": "141",
      "avg_time": "1.15s",
      "max_time": "1.88s",
      "max_mem": "736584418",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=7fd49b5b16a22325563c8a9ddd3dbc7cc4228261a497b49a349085f030818699&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "4ec00c4c3dfb90e450cbaeb8b12a41999f4a62b3481f6d3c1f01453bfba6ff7d",
      "sql_preview": "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_",
      "exec_count": "66",
      "avg_time": "7.33s",
      "max_time": "16.30s",
      "max_mem": "84960",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=4ec00c4c3dfb90e450cbaeb8b12a41999f4a62b3481f6d3c1f01453bfba6ff7d&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "e13195c734caeec21729f80b9b9bf2823f8545f5f307219b1c7909b0a278d4ac",
      "sql_preview": "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_tok",
      "exec_count": "65",
      "avg_time": "1.66s",
      "max_time": "2.90s",
      "max_mem": "110280",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=e13195c734caeec21729f80b9b9bf2823f8545f5f307219b1c7909b0a278d4ac&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "b9a982447eafb04ff86f50e6cd38ac1ae7cbeef7c3130fdf8502a0dc736fb390",
      "sql_preview": "SELECT useridx, parent_useridx FROM (SELECT d.useridx, d.parent_useridx FROM dh_promote_myteam_direct d INNER JOIN dh_user_day_report r ON r.user_idx=d.useridx and r.site_code=d.site_code AND r.create",
      "exec_count": "57",
      "avg_time": "1.95s",
      "max_time": "4.81s",
      "max_mem": "182835294",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=b9a982447eafb04ff86f50e6cd38ac1ae7cbeef7c3130fdf8502a0dc736fb390&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "5ed3c66a6505fd76ff485d8829bf90185120209653739e7ed473e676d622ce5b",
      "sql_preview": "SELECT '11366' as site_code,20260418 as create_ymd,case when t2.register_os_type in (2,11,12,13,20) then 1 when t2.register_os_type in (1,9,10,14,18,19) then 2 else 3 end as kind,case when t2.register",
      "exec_count": "55",
      "avg_time": "1.65s",
      "max_time": "3.84s",
      "max_mem": "501250990",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=5ed3c66a6505fd76ff485d8829bf90185120209653739e7ed473e676d622ce5b&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "ba0dada88f798386ffc6d67a831743bf6f02c45375ba707ce034419e2ae5b792",
      "sql_preview": "SELECT * FROM `dh_finance_details` WHERE (message_status = 0 and create_time < ? and create_time > ?) AND site_code = ? ORDER BY create_time desc LIMIT 10000 [arguments: (\"2026-04-19 08:41:00.03922227",
      "exec_count": "55",
      "avg_time": "1.48s",
      "max_time": "2.88s",
      "max_mem": "120989",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=ba0dada88f798386ffc6d67a831743bf6f02c45375ba707ce034419e2ae5b792&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "601fa8ba4933c1b022c2b158c65b3c24676f1264578530ff7788162c80c4c727",
      "sql_preview": "SELECT ? as create_ymd,t2.register_currency as currency,t2.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.userid",
      "exec_count": "50",
      "avg_time": "2.03s",
      "max_time": "5.55s",
      "max_mem": "282424798",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=601fa8ba4933c1b022c2b158c65b3c24676f1264578530ff7788162c80c4c727&from=1776559500&to=1776561600&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "840365654e7c46a47ef10a14ac5d1c12c2bb861897fdf680cb6caa32c23e9e80",
      "sql_preview": "SELECT c.useridx, c.username, c.regpkgid, a.currency, p.parent_useridx AS parent_useridx FROM dh_user_day_report a INNER JOIN dh_account_basic c on c.useridx = a.user_idx and c.site_code=a.site_code L",
      "exec_count": "49",
      "avg_time": "2.04s",
      "max_time": "5.49s",
      "max_mem": "103465219",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/slow_query?digest=840365654e7c46a47ef10a14ac5d1c12c2bb861897fdf680cb6caa32c23e9e80&from=1776559500&to=1776561600&show_internal=true&term="
    }
  ],
  "topsql": [
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "5149920",
      "cpu_pct": 3.41,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-12.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-12.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4933890",
      "cpu_pct": 3.26,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-3.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-3.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4923600",
      "cpu_pct": 3.26,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-5.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-5.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4736430",
      "cpu_pct": 3.13,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-2.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-2.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4706640",
      "cpu_pct": 3.11,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-8.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-8.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4691840",
      "cpu_pct": 3.1,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-6.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-6.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4599360",
      "cpu_pct": 3.04,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-10.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-10.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4390960",
      "cpu_pct": 2.9,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-4.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-4.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4205690",
      "cpu_pct": 2.78,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-9.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-9.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "4064850",
      "cpu_pct": 2.69,
      "instance": "db-2006015162468798464-fc67a2f2-tidb-1.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-2006015162468798464-fc67a2f2-tidb-1.db-2006015162468798464-fc67a2f2-tidb-peer.tidb10518506906906971664.svc%3A10080"
    },
    {
      "component": "TiKV",
      "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
      "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`",
      "cpu_ms": "1400803",
      "cpu_pct": 0.0,
      "instance": "db-tikv-22.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-22.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "37705ED2CE09BF229826EF389C43693D0F540017E95FB29F5B5C2B0E6F078A71",
      "sql_preview": "select `site_code` , `useridx` , sum ( `total_real_amount` ) as `amount` , max ( `update_time` ) `pay_time` from `dh_pay_order_success_user_summary` where `create_ymd` >= ? and `create_ymd` <= ? and `",
      "cpu_ms": "1148143",
      "cpu_pct": 0.0,
      "instance": "db-tikv-35.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-35.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
      "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`",
      "cpu_ms": "1145884",
      "cpu_pct": 0.0,
      "instance": "db-tikv-35.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-35.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "37705ED2CE09BF229826EF389C43693D0F540017E95FB29F5B5C2B0E6F078A71",
      "sql_preview": "select `site_code` , `useridx` , sum ( `total_real_amount` ) as `amount` , max ( `update_time` ) `pay_time` from `dh_pay_order_success_user_summary` where `create_ymd` >= ? and `create_ymd` <= ? and `",
      "cpu_ms": "1029954",
      "cpu_pct": 0.0,
      "instance": "db-tikv-21.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-21.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
      "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`",
      "cpu_ms": "1007709",
      "cpu_pct": 0.0,
      "instance": "db-tikv-49.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-49.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "601FA8BA4933C1B022C2B158C65B3C24676F1264578530FF7788162C80C4C727",
      "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , `t2` . `club_id` , count ( distinct `t1` . `useridx` ) as `login_persons` from `dh_user_action_logs` as `t1` left join `dh_account",
      "cpu_ms": "992716",
      "cpu_pct": 0.0,
      "instance": "db-tikv-51.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-51.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "A778DFEE075405DC4D534D560F755CC2E3836B661D7D3EACCD7FE806B1EFD36C",
      "sql_preview": "select `a` . `message_id` , `a` . `params` , `a` . `status` from `dh_message_user_params` `a` left join `dh_message_setting_currency` `b` on `a` . `message_id` = `b` . `message_id` left join `dh_messa",
      "cpu_ms": "918149",
      "cpu_pct": 0.0,
      "instance": "db-tikv-38.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-38.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
      "sql_preview": "select `a` . `site_code` , `a` . `useridx` , sum ( `valid_bet_total` ) `valid_bet_total` from `dh_active_bet_total` `a` inner join `dh_account_ext_inviterinfo` `b` on `a` . `useridx` = `b` . `useridx`",
      "cpu_ms": "887469",
      "cpu_pct": 0.0,
      "instance": "db-tikv-50.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-50.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "964B5C2D1BD95B8BAAE21E3CB062D9ED867BDCC3A4077879A75CDD0A414E2E73",
      "sql_preview": "select `site_code` , `useridx` , sum ( `total_real_amount` ) as `amount` , max ( `update_time` ) `pay_time` from `dh_pay_order_success_user_summary` where `create_ymd` >= ? and `create_ymd` <= ? and `",
      "cpu_ms": "707163",
      "cpu_pct": 0.0,
      "instance": "db-tikv-2.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-2.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "601FA8BA4933C1B022C2B158C65B3C24676F1264578530FF7788162C80C4C727",
      "sql_preview": "select ? as `create_ymd` , `t2` . `register_currency` as `currency` , `t2` . `club_id` , count ( distinct `t1` . `useridx` ) as `login_persons` from `dh_user_action_logs` as `t1` left join `dh_account",
      "cpu_ms": "692207",
      "cpu_pct": 0.0,
      "instance": "db-tikv-23.db-tikv-peer.tidb10518506906906971664.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10518506906906971664&provider=aws&region=us-east-1&orgName=Buffet%27s%20Org&orgId=1372813089209061633&projectId=1372813089454544954&clusterName=prod-us-saas-gosaas-region-tidb-v85-02&deployType=dedicated&version=v8.5.4#/topsql?from=1776559500&to=1776561600&instance=db-tikv-23.db-tikv-peer.tidb10518506906906971664.svc%3A20160"
    }
  ],
  "decoded_plan": {
    "digest": "20BF657C894740B6BA118C377A13C165D4E851FE65D33819C9AEB8BBC7325829",
    "source": "topsql_tikv",
    "full_sql": "SELECT a.site_code, a.useridx,SUM(valid_bet_total) valid_bet_total  FROM dh_active_bet_total a  INNER JOIN dh_account_ext_inviterinfo b ON a.useridx=b.useridx AND a.site_code=b.site_code  AND a.site_code=? AND b.inviter_useridx IN (?) where 1=1   group by  a.useridx [arguments: (\"7811\", 819262725)];",
    "decoded_plan": "{\n  \"main\": {\n    \"name\": \"Projection_10\",\n    \"children\": [\n      {\n        \"name\": \"HashAgg_11\",\n        \"children\": [\n          {\n            \"name\": \"IndexHashJoin_21\",\n            \"children\": [\n              {\n                \"name\": \"IndexLookUp_61\",\n                \"children\": [\n                  {\n                    \"name\": \"IndexRangeScan_59\",\n                    \"labels\": [\n                      \"buildSide\"\n                    ],\n                    \"cost\": 1642.9201187415706,\n                    \"estRows\": 7.478810821023625,\n                    \"actRows\": \"3\",\n                    \"taskType\": \"cop\",\n                    \"storeType\": \"tikv\",\n                    \"accessObjects\": [\n                      {\n                        \"scanObject\": {\n                          \"database\": \"dh_app_7811\",\n                          \"table\": \"b\",\n                          \"indexes\": [\n                            {\n                              \"name\": \"idx_inviteruseridx_sitecode\",\n                              \"cols\": [\n                                \"inviter_useridx\",\n                                \"site_code\"\n                              ]\n                            }\n                          ]\n                        }\n                      }\n                    ],\n                    \"operatorInfo\": \"range:[819262725 \\\"7811\\\",819262725 \\\"7811\\\"], keep order:false\",\n                    \"rootBasicExecInfo\": \"time:911.7\\u00b5s, loops:3\",\n                    \"rootGroupExecInfo\": [\n                      \"cop_task: {num: 1, max: 887.6\\u00b5s, proc_keys: 3, tot_proc: 101.8\\u00b5s, tot_wait: 10.3\\u00b5s, copr_cache_hit_ratio: 0.00, build_task_duration: 25.6\\u00b5s, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:1, total_time:877.3\\u00b5s}}\"\n                    ],\n                    \"copExecInfo\": \"tikv_task:{time:0s, loops:1}, scan_detail: {total_process_keys: 3, total_process_keys_size: 225, total_keys: 4, get_snapshot_time: 5\\u00b5s, rocksdb: {key_skipped_count: 3, block: {cache_hit_count: 14}}}, time_detail: {total_process_time: 101.8\\u00b5s, total_wait_time: 10.3\\u00b5s, tikv_wall_time: 164.1\\u00b5s}\",\n                    \"memoryBytes\": \"-1\",\n                    \"diskBytes\": \"-1\"\n                  },\n                  {\n                    \"name\": \"TableRowIDScan_60\",\n                    \"labels\": [\n                      \"probeSide\"\n                    ],\n                    \"cost\": 2175.73736176392,\n                    \"estRows\": 7.478810821023625,\n                    \"actRows\": \"3\",\n                    \"taskType\": \"cop\",\n                    \"storeType\": \"tikv\",\n                    \"accessObjects\": [\n                      {\n                        \"scanObject\": {\n                          \"database\": \"dh_app_7811\",\n                          \"table\": \"b\"\n                        }\n                      }\n                    ],\n                    \"operatorInfo\": \"keep order:false\",\n                    \"rootBasicExecInfo\": \"time:2.33ms, loops:2\",\n                    \"rootGroupExecInfo\": [\n                      \"cop_task: {num: 1, max: 2.3ms, proc_keys: 3, tot_proc: 100.3\\u00b5s, tot_wait: 1.66ms, copr_cache_hit_ratio: 0.00, build_task_duration: 25.8\\u00b5s, max_distsql_concurrency: 1, max_extra_concurrency: 1}, rpc_info:{Cop:{num_rpc:1, total_time:2.29ms}}\"\n                    ],\n                    \"copExecInfo\": \"tikv_task:{time:0s, loops:1}, scan_detail: {total_process_keys: 3, total_process_keys_size: 300, total_keys: 4, get_snapshot_time: 4.36\\u00b5s, rocksdb: {key_skipped_count: 3, block: {cache_hit_count: 14}}}, time_detail: {total_process_time: 100.3\\u00b5s, total_wait_time: 1.66ms, tikv_wall_time: 1.81ms}\",\n                    \"memoryBytes\": \"-1\",\n                    \"diskBytes\": \"-1\"\n                  }\n                ],\n                \"labels\": [\n                  \"buildSide\"\n                ],\n                \"cost\": 14635.338492551828,\n                \"estRows\": 7.478810821023625,\n                \"actRows\": \"3\",\n                \"taskType\": \"root\",\n                \"storeType\": \"tidb\",\n                \"rootBasicExecInfo\": \"time:3.37ms, loops:3\",\n                \"rootGroupExecInfo\": [\n                  \"index_task: {total_time: 915.8\\u00b5s, fetch_handle: 913.6\\u00b5s, build: 439ns, wait: 1.74\\u00b5s}, table_task: {total_time: 2.39ms, num: 1, concurrency: 5}, next: {wait_index: 971.9\\u00b5s, wait_table_lookup_build: 45\\u00b5s, wait_table_lookup_resp: 2.34ms}\"\n                ],\n                \"memoryBytes\": \"18509\",\n                \"diskBytes\": \"-1\"\n              },\n              {\n                \"name\": \"IndexLookUp_18\",\n                \"children\": [\n                  {\n                    \"name\": \"Selection_17\",\n                    \"children\": [\n                      {\n                        \"name\": \"IndexRangeScan_15\",\n                        \"cost\": 926.1332103598708,\n                        \"estRows\": 26.190701262190842,\n                        \"actRows\": \"90\",\n                        \"taskType\": \"cop\",\n                        \"storeType\": \"tikv\",\n                        \"accessObjects\": [\n                          {\n                            \"scanObject\": {\n                              \"database\": \"dh_app_7811\",\n                              \"table\": \"a\",\n                              \"indexes\": [\n                                {\n                                  \"name\": \"udx_active_bet_total_sitecode\",\n                                  \"cols\": [\n                                    \"useridx\",\n                                    \"game_category_id\",\n                                    \"game_platform_id\",\n                                    \"game_id\",\n                                    \"site_code\"\n                                  ]\n                                }\n                              ]\n                            }\n                          }\n                        ],\n                        \"operatorInfo\": \"range: decided by [eq(dh_app_7811.dh_active_bet_total.useridx, dh_app_7811.dh_account_ext_inviterinfo.useridx)], keep order:false\",\n                        \"copExecInfo\": \"tikv_task:{proc max:0s, min:0s, avg: 0s, p80:0s, p95:0s, iters:5, tasks:3}\",\n                        \"memoryBytes\": \"-1\",\n                        \"diskBytes\": \"-1\"\n                      }\n                    ],\n                    \"labels\": [\n                      \"buildSide\"\n                    ],\n                    \"cost\": 1100.8823816197537,\n                    \"estRows\": 26.190701262190842,\n                    \"actRows\": \"90\",\n                    \"taskType\": \"cop\",\n                    \"storeType\": \"tikv\",\n                    \"operatorInfo\": \"eq(dh_app_7811.dh_active_bet_total.site_code, \\\"7811\\\")\",\n                    \"rootBasicExecInfo\": \"time:2.44ms, loops:3\",\n                    \"rootGroupExecInfo\": [\n                      \"cop_task: {num: 3, max: 2.41ms, min: 1.54ms, avg: 1.88ms, p95: 2.41ms, max_proc_keys: 45, p95_proc_keys: 45, tot_proc: 3.76ms, tot_wait: 62.1\\u00b5s, copr_cache_hit_ratio: 0.00, build_task_duration: 35.6\\u00b5s, max_distsql_concurrency: 3}, rpc_info:{Cop:{num_rpc:3, total_time:5.59ms}}\"\n                    ],\n                    \"copExecInfo\": \"tikv_task:{proc max:0s, min:0s, avg: 0s, p80:0s, p95:0s, iters:5, tasks:3}, scan_detail: {total_process_keys: 90, total_process_keys_size: 11337, total_keys: 93, get_snapshot_time: 26.6\\u00b5s, rocksdb: {key_skipped_count: 90, block: {cache_hit_count: 34, read_count: 7, read_byte: 80.6 KB, read_time: 3.13ms}}}, time_detail: {total_process_time: 3.76ms, total_suspend_time: 6.89\\u00b5s, total_wait_time: 62.1\\u00b5s, tikv_wall_time: 4.04ms}\",\n                    \"memoryBytes\": \"-1\",\n                    \"diskBytes\": \"-1\"\n                  },\n                  {\n                    \"name\": \"TableRowIDScan_16\",\n                    \"labels\": [\n                      \"probeSide\"\n                    ],\n                    \"cost\": 1192.5839132764143,\n                    \"estRows\": 26.190701262190842,\n                    \"actRows\": \"90\",\n                    \"taskType\": \"cop\",\n                    \"storeType\": \"tikv\",\n                    \"accessObjects\": [\n                      {\n                        \"scanObject\": {\n                          \"database\": \"dh_app_7811\",\n                          \"table\": \"a\"\n                        }\n                      }\n                    ],\n                    \"operatorInfo\": \"keep order:false\",\n                    \"rootBasicExecInfo\": \"time:1.03s, loops:2\",\n                    \"rootGroupExecInfo\": [\n                      \"cop_task: {num: 26, max: 1.03s, min: 362.7\\u00b5s, avg: 41.7ms, p95: 4.03ms, max_proc_keys: 8, p95_proc_keys: 7, tot_proc: 46.2ms, tot_wait: 3.84ms, copr_cache_hit_ratio: 0.00, build_task_duration: 156.3\\u00b5s, max_distsql_concurrency: 1, max_extra_concurrency: 11}, rpc_info:{Cop:{num_rpc:26, total_time:1.08s}}\"\n                    ],\n                    \"copExecInfo\": \"tikv_task:{proc max:1.02s, min:0s, avg: 40.7ms, p80:0s, p95:10ms, iters:26, tasks:26}, scan_detail: {total_process_keys: 90, total_process_keys_size: 13896, total_keys: 90, get_snapshot_time: 247.1\\u00b5s, rocksdb: {block: {cache_hit_count: 687, read_count: 79, read_byte: 721.8 KB, read_time: 39.2ms}}}, time_detail: {total_process_time: 46.2ms, total_suspend_time: 1.02s, total_wait_time: 3.84ms, total_kv_read_wall_time: 1.06s, tikv_wall_time: 1.07s}\",\n                    \"memoryBytes\": \"-1\",\n                    \"diskBytes\": \"-1\"\n                  }\n                ],\n                \"labels\": [\n                  \"probeSide\"\n                ],\n                \"cost\": 6906.182861570326,\n                \"estRows\": 26.190701262190842,\n                \"actRows\": \"90\",\n                \"taskType\": \"root\",\n                \"storeType\": \"tidb\",\n                \"rootBasicExecInfo\": \"time:1.04s, loops:2\",\n                \"rootGroupExecInfo\": [\n                  \"index_task: {total_time: 2.46ms, fetch_handle: 2.45ms, build: 652ns, wait: 2.29\\u00b5s}, table_task: {total_time: 1.03s, num: 1, concurrency: 5}, next: {wait_index: 2.52ms, wait_table_lookup_build: 253.3\\u00b5s, wait_table_lookup_resp: 1.03s}\"\n                ],\n                \"memoryBytes\": \"30432\",\n                \"diskBytes\": \"-1\"\n              }\n            ],\n            \"cost\": 21673.180736516682,\n            \"estRows\": 26.190701262190846,\n            \"actRows\": \"90\",\n            \"taskType\": \"root\",\n            \"storeType\": \"tidb\",\n            \"operatorInfo\": \"inner join, inner:IndexLookUp_18, outer key:dh_app_7811.dh_account_ext_inviterinfo.useridx, inner key:dh_app_7811.dh_active_bet_total.useridx, equal cond:eq(dh_app_7811.dh_account_ext_inviterinfo.useridx, dh_app_7811.dh_active_bet_total.useridx)\",\n            \"rootBasicExecInfo\": \"time:1.04s, loops:2\",\n            \"rootGroupExecInfo\": [\n              \"inner:{total:1.04s, concurrency:5, task:1, construct:4.82\\u00b5s, fetch:1.04s, build:4.48\\u00b5s, join:32.1\\u00b5s}\"\n            ],\n            \"memoryBytes\": \"64330\",\n            \"diskBytes\": \"-1\"\n          }\n        ],\n        \"cost\": 25110.890747484013,\n        \"estRows\": 26.190701262190846,\n        \"actRows\": \"3\",\n        \"taskType\": \"root\",\n        \"storeType\": \"tidb\",\n        \"operatorInfo\": \"group by:dh_app_7811.dh_active_bet_total.useridx, funcs:sum(dh_app_7811.dh_active_bet_total.valid_bet_total)->Column#26, funcs:firstrow(dh_app_7811.dh_active_bet_total.site_code)->dh_app_7811.dh_active_bet_total.site_code, funcs:firstrow(dh_app_7811.dh_active_bet_total.useridx)->dh_app_7811.dh_active_bet_total.useridx\",\n        \"rootBasicExecInfo\": \"time:1.04s, loops:4\",\n        \"rootGroupExecInfo\": [\n          \"partial_worker:{wall_time:1.038983044s, concurrency:5, task_num:1, tot_wait:1.038887493s, tot_exec:23.037\\u00b5s, tot_time:5.194616128s, max:1.038930865s, p95:1.038930865s}, final_worker:{wall_time:1.039006584s, concurrency:5, task_num:5, tot_wait:48.299\\u00b5s, tot_exec:188ns, tot_time:5.194816703s, max:1.038976892s, p95:1.038976892s}\"\n        ],\n        \"memoryBytes\": \"62854\"\n      }\n    ],\n    \"cost\": 25118.73224344191,\n    \"estRows\": 26.190701262190846,\n    \"actRows\": \"3\",\n    \"taskType\": \"root\",\n    \"storeType\": \"tidb\",\n    \"operatorInfo\": \"dh_app_7811.dh_active_bet_total.site_code, dh_app_7811.dh_active_bet_total.useridx, Column#26\",\n    \"rootBasicExecInfo\": \"time:1.04s, loops:4\",\n    \"rootGroupExecInfo\": [\n      \"Concurrency:OFF\"\n    ],\n    \"memoryBytes\": \"10512\",\n    \"diskBytes\": \"-1\"\n  },\n  \"withRuntimeStats\": true\n}",
    "stats_info": "dh_active_bet_total:465714347160897955[20947555;5871790],dh_account_ext_inviterinfo:465710982241191191[4424453;680812]",
    "backoff": "",
    "indexes_used": "[dh_account_ext_inviterinfo:idx_inviteruseridx_sitecode]",
    "query_time": "4.282842396",
    "process_time": "11.371668764",
    "wait_time": "0.566806446",
    "total_keys": "895",
    "process_keys": "934213"
  }
}