{
  "slow_queries": [
    {
      "source": "slow_query",
      "digest": "182d2a8778183493396fec668542326f68285454b49e4056521132a65e73af41",
      "sql_preview": "select `id` , `billno` , `loginname` , `product_id` , `platform_id` , `agcode` , `topagcode` , `gmcode` , `game_kind` , `gametype` , `device_type` , `currency` , `account` , `valid_account` , `cus_acc",
      "exec_count": "2617",
      "avg_time": "0.41s",
      "max_time": "0.56s",
      "max_mem": "11054993",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=182d2a8778183493396fec668542326f68285454b49e4056521132a65e73af41&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "fe88b31a1bebc900d6ea20d66e7f1b3b90bfa7c3c5d9678addd9b5ecc7328b5c",
      "sql_preview": "select sum ( `cus_account` ) as `cusaccount` from `orders_tiptop` where `reckontime` < ? and `reckontime` >= ? and `gametype` in ( ... );",
      "exec_count": "294",
      "avg_time": "0.43s",
      "max_time": "0.70s",
      "max_mem": "263009",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=fe88b31a1bebc900d6ea20d66e7f1b3b90bfa7c3c5d9678addd9b5ecc7328b5c&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "ac2ec59dd996c74753472e5ce22a6e1bd7d921cff2f68fc07e456dc9d584b91c",
      "sql_preview": "select `game_biz_id` , `legal_status` from `t_game_legal` where ( `game_biz_id` in ( ... ) );",
      "exec_count": "201",
      "avg_time": "5.95s",
      "max_time": "9.82s",
      "max_mem": "81617",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=ac2ec59dd996c74753472e5ce22a6e1bd7d921cff2f68fc07e456dc9d584b91c&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "f5ac85539b01dab03a84c9fec7b3e69784497456f24c685fbbec5d114fad4b5b",
      "sql_preview": "select `billno` as `billno` , `loginname` as `loginname` , `agcode` as `agcode` , `platform_id` as `platformid` , `remark` as `remark` , account as account , `valid_account` as `validaccount` , `cus_a",
      "exec_count": "91",
      "avg_time": "0.48s",
      "max_time": "0.71s",
      "max_mem": "155506760",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=f5ac85539b01dab03a84c9fec7b3e69784497456f24c685fbbec5d114fad4b5b&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "589a99ca5f6482804a4219319c99045c560fc0d51879cedb29a9e65494dfc31c",
      "sql_preview": "select count ( ? ) as `total` from `orders_tpg` where `billtime` >= ? and `billtime` <= ? and `flag` = ?;",
      "exec_count": "36",
      "avg_time": "0.32s",
      "max_time": "0.47s",
      "max_mem": "8413229",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=589a99ca5f6482804a4219319c99045c560fc0d51879cedb29a9e65494dfc31c&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "7ccc7848cb88953b77d9aa9a53e5fe26134b456666c3178b1fbc7a03f0c53bd1",
      "sql_preview": "select count ( ? ) from `orders_tiptop_mx` `t` where `product_id` = ? and `platform_id` = ? and `gametype` in ( ... ) and `reckontime` >= ? and `reckontime` <= ? and `flag` = ?;",
      "exec_count": "7",
      "avg_time": "0.80s",
      "max_time": "1.19s",
      "max_mem": "2292974",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=7ccc7848cb88953b77d9aa9a53e5fe26134b456666c3178b1fbc7a03f0c53bd1&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "bc9a10edf259547eb008a85e27cde6f2732fa0795c63f26fa98ccee34e402f47",
      "sql_preview": "select `t` . `id` , `t` . `loginname` , `t` . `platform_id` , `t` . `flag` , `t` . `product_id` , `t` . `account` , `t` . `valid_account` , `t` . `cus_account` as `winloss` , ? as `play_type` , `t` . ",
      "exec_count": "6",
      "avg_time": "0.72s",
      "max_time": "1.11s",
      "max_mem": "13761520",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=bc9a10edf259547eb008a85e27cde6f2732fa0795c63f26fa98ccee34e402f47&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "65ca2bca915890f1497e83c088832eb9c15453b8a4a8931f1085e2577f5ec83e",
      "sql_preview": "select sum ( `cus_account` ) as `cusaccount` , `belong` from `t_interim_orders` where `reserved2` = ? and `reckontime` < ? and `reckontime` >= ? group by `belong`;",
      "exec_count": "5",
      "avg_time": "0.30s",
      "max_time": "0.31s",
      "max_mem": "5183",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=65ca2bca915890f1497e83c088832eb9c15453b8a4a8931f1085e2577f5ec83e&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "0516b06674a1df5e6ff09ffa3d8fadf4449474ccd4e911cf8a264773a7545ea2",
      "sql_preview": "select sum ( `cus_account` ) as `cusaccount` from `orders_ebgo` where `reckontime` < ? and `reckontime` >= ?;",
      "exec_count": "4",
      "avg_time": "1.50s",
      "max_time": "2.68s",
      "max_mem": "7827442",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=0516b06674a1df5e6ff09ffa3d8fadf4449474ccd4e911cf8a264773a7545ea2&from=1774924500&to=1774927440&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "33f8cc8cb281e8dae6cdf5c68b3c6ab78caec5e039e5d4191983de51ba36b55d",
      "sql_preview": "select ... , count ( ? ) , sum ( `t` . `valid_account` ) , sum ( `t` . `cus_account` ) from `orders_omniplay` `t` where `t` . `reckontime` between ? and ? and `t` . `flag` = ? limit ?;",
      "exec_count": "3",
      "avg_time": "1.15s",
      "max_time": "1.39s",
      "max_mem": "19106",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10109909546444159555&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-dc&deployType=premium&version=v8.5.4#/slow_query?digest=33f8cc8cb281e8dae6cdf5c68b3c6ab78caec5e039e5d4191983de51ba36b55d&from=1774924500&to=1774927440&show_internal=true&term="
    }
  ],
  "topsql": [],
  "decoded_plan": {
    "digest": "182d2a8778183493396fec668542326f68285454b49e4056521132a65e73af41",
    "source": "slow_query",
    "full_sql": "select `id` , `billno` , `loginname` , `product_id` , `platform_id` , `agcode` , `topagcode` , `gmcode` , `game_kind` , `gametype` , `device_type` , `currency` , `account` , `valid_account` , `cus_account` , `previos_amount` , `currentamount` , `billtime` , `reckontime` , `orignalbilltime` , `orignal_reckontime` , `flag` , `bonus_amount` , `remain_amount` , `playtype` , `tablecode` , `isspecia` , `termtype` , `currency_type` , `cur_ip` , `round` , `creation_time` , `remark` , `hashcode` , `jackpot_amount` , `is_online` , `fixed_time` , `game_name` , `branch_code` , `branch_name` , `site_id` , `bet_site_id` , `device_id` , `apps_flyer_id` , `tenant` , `lineage` , `channel` , `reserved` , `reserved2` , `reserved3` , `account_voucher` , `payout_voucher` , `account_principal` , `jackpot_contribution` , `tax_deduction_type` , `tax_deduction_amount` , `tax_deduction_rate` , `assigned_branch_code` , `assigned_branch_name` from `orders_tpg` where `billtime` >= ? and `billtime` <= ? and `flag` = ? limit ...;",
    "decoded_plan": "{\n  \"main\": {\n    \"name\": \"Projection_7\",\n    \"children\": [\n      {\n        \"name\": \"Limit_10\",\n        \"children\": [\n          {\n            \"name\": \"IndexLookUp_22\",\n            \"children\": [\n              {\n                \"name\": \"IndexRangeScan_18\",\n                \"labels\": [\n                  \"buildSide\"\n                ],\n                \"cost\": 1822.0549879435102,\n                \"estRows\": 6.8284228469459105,\n                \"actRows\": \"380026\",\n                \"taskType\": \"cop\",\n                \"storeType\": \"tikv\",\n                \"accessObjects\": [\n                  {\n                    \"scanObject\": {\n                      \"database\": \"c66_dc\",\n                      \"table\": \"ORDERS_TPG\",\n                      \"indexes\": [\n                        {\n                          \"name\": \"I_ORDERS_TPG_BT_B_P_P_RT\",\n                          \"cols\": [\n                            \"BILLTIME\",\n                            \"BILLNO\",\n                            \"PLATFORM_ID\",\n                            \"PRODUCT_ID\",\n                            \"RECKONTIME\"\n                          ]\n                        }\n                      ]\n                    }\n                  }\n                ],\n                \"operatorInfo\": \"range:[?,?), keep order:false\",\n                \"rootBasicExecInfo\": \"time:236.6ms, open:0s, close:0s, loops:379\",\n                \"rootGroupExecInfo\": [\n                  \"cop_task: {num: 7, max: 224.7ms, min: 1.09ms, avg: 33.8ms, p95: 224.7ms, max_proc_keys: 384812, p95_proc_keys: 384812, tot_proc: 203.4ms, tot_wait: 113.8\\u00b5s, copr_cache: disabled, build_task_duration: 12.6\\u00b5s, max_distsql_concurrency: 1}, fetch_resp_duration: 236.4ms, rpc_info:{Cop:{num_rpc:7, total_time:236.7ms}}\"\n                ],\n                \"copExecInfo\": \"tikv_task:{proc max:197ms, min:0s, avg: 29ms, p80:2ms, p95:197ms, iters:398, tasks:7}, scan_detail: {total_process_keys: 396652, total_process_keys_size: 35591403, total_keys: 11846, get_snapshot_time: 33.9\\u00b5s, rocksdb: {block: {}}}, time_detail: {total_process_time: 203.4ms, total_suspend_time: 29.3\\u00b5s, total_wait_time: 113.8\\u00b5s, total_kv_read_wall_time: 6ms}\",\n                \"memoryBytes\": \"-1\",\n                \"diskBytes\": \"-1\"\n              },\n              {\n                \"name\": \"Limit_21\",\n                \"children\": [\n                  {\n                    \"name\": \"Selection_20\",\n                    \"children\": [\n                      {\n                        \"name\": \"TableRowIDScan_19\",\n                        \"cost\": 3076.567026467654,\n                        \"estRows\": 6.8284228469459105,\n                        \"actRows\": \"380026\",\n                        \"taskType\": \"cop\",\n                        \"storeType\": \"tikv\",\n                        \"accessObjects\": [\n                          {\n                            \"scanObject\": {\n                              \"database\": \"c66_dc\",\n                              \"table\": \"ORDERS_TPG\"\n                            }\n                          }\n                        ],\n                        \"operatorInfo\": \"keep order:false\",\n                        \"copExecInfo\": \"tikv_task:{proc max:49ms, min:1ms, avg: 24.3ms, p80:39ms, p95:49ms, iters:519, tasks:32}\",\n                        \"memoryBytes\": \"-1\",\n                        \"diskBytes\": \"-1\"\n                      }\n                    ],\n                    \"cost\": 3417.305326530255,\n                    \"estRows\": 1.0,\n                    \"actRows\": \"3\",\n                    \"taskType\": \"cop\",\n                    \"storeType\": \"tikv\",\n                    \"operatorInfo\": \"eq(c66_dc.orders_tpg.flag, ?)\",\n                    \"copExecInfo\": \"tikv_task:{proc max:49ms, min:1ms, avg: 24.4ms, p80:39ms, p95:49ms, iters:519, tasks:32}\",\n                    \"memoryBytes\": \"-1\",\n                    \"diskBytes\": \"-1\"\n                  }\n                ],\n                \"labels\": [\n                  \"probeSide\"\n                ],\n                \"cost\": 3417.305326530255,\n                \"estRows\": 1.0,\n                \"actRows\": \"3\",\n                \"taskType\": \"cop\",\n                \"storeType\": \"tikv\",\n                \"operatorInfo\": \"offset:?, count:?\",\n                \"rootBasicExecInfo\": \"total_time:723ms, total_open:0s, total_close:63.7\\u00b5s, loops:28\",\n                \"rootGroupExecInfo\": [\n                  \"cop_task: {num: 32, max: 50.7ms, min: 846.4\\u00b5s, avg: 25.3ms, p95: 50.6ms, max_proc_keys: 20480, p95_proc_keys: 20480, tot_proc: 790.3ms, tot_wait: 570\\u00b5s, copr_cache: disabled, build_task_duration: 278.7\\u00b5s, max_distsql_concurrency: 2}, fetch_resp_duration: 722.5ms, rpc_info:{Cop:{num_rpc:32, total_time:810.7ms}}\"\n                ],\n                \"copExecInfo\": \"tikv_task:{proc max:49ms, min:1ms, avg: 24.4ms, p80:39ms, p95:49ms, iters:519, tasks:32}, scan_detail: {total_process_keys: 380026, total_process_keys_size: 244234879, total_keys: 380149, get_snapshot_time: 182.5\\u00b5s, rocksdb: {block: {}}}, time_detail: {total_process_time: 790.3ms, total_suspend_time: 2.37ms, total_wait_time: 570\\u00b5s, total_kv_read_wall_time: 776ms}\",\n                \"memoryBytes\": \"-1\",\n                \"diskBytes\": \"-1\"\n              }\n            ],\n            \"cost\": 8100.411418798232,\n            \"estRows\": 1.0,\n            \"actRows\": \"3\",\n            \"taskType\": \"root\",\n            \"storeType\": \"tidb\",\n            \"rootBasicExecInfo\": \"time:407.8ms, open:5.18\\u00b5s, close:4.33\\u00b5s, loops:2\",\n            \"rootGroupExecInfo\": [\n              \"index_task: {total_time: 363.2ms, fetch_handle: 248.7ms, build: 21\\u00b5s, wait: 114.4ms}, table_task: {total_time: 789.5ms, num: 26, concurrency: 5}, next: {wait_index: 221ms, wait_table_lookup_build: 2.09ms, wait_table_lookup_resp: 184.7ms}\"\n            ],\n            \"memoryBytes\": \"8462886\",\n            \"diskBytes\": \"-1\"\n          }\n        ],\n        \"cost\": 8100.411418798232,\n        \"estRows\": 1.0,\n        \"actRows\": \"3\",\n        \"taskType\": \"root\",\n        \"storeType\": \"tidb\",\n        \"operatorInfo\": \"offset:?, count:?\",\n        \"rootBasicExecInfo\": \"time:407.8ms, open:13.3\\u00b5s, close:4.88\\u00b5s, loops:2\",\n        \"memoryBytes\": \"-1\",\n        \"diskBytes\": \"-1\"\n      }\n    ],\n    \"cost\": 8106.299618798233,\n    \"estRows\": 1.0,\n    \"actRows\": \"3\",\n    \"taskType\": \"root\",\n    \"storeType\": \"tidb\",\n    \"operatorInfo\": \"c66_dc.orders_tpg.id, c66_dc.orders_tpg.billno, c66_dc.orders_tpg.loginname, c66_dc.orders_tpg.product_id, c66_dc.orders_tpg.platform_id, c66_dc.orders_tpg.agcode, c66_dc.orders_tpg.topagcode, c66_dc.orders_tpg.gmcode, c66_dc.orders_tpg.game_kind, c66_dc.orders_tpg.gametype, c66_dc.orders_tpg.device_type, c66_dc.orders_tpg.currency, c66_dc.orders_tpg.account, c66_dc.orders_tpg.valid_account, c66_dc.orders_tpg.cus_account, c66_dc.orders_tpg.previos_amount, c66_dc.orders_tpg.currentamount, c66_dc.orders_tpg.billtime, c66_dc.orders_tpg.reckontime, c66_dc.orders_tpg.orignalbilltime, c66_dc.orders_tpg.orignal_reckontime, c66_dc.orders_tpg.flag, c66_dc.orders_tpg.bonus_amount, c66_dc.orders_tpg.remain_amount, c66_dc.orders_tpg.playtype, c66_dc.orders_tpg.tablecode, c66_dc.orders_tpg.isspecia, c66_dc.orders_tpg.termtype, c66_dc.orders_tpg.currency_type, c66_dc.orders_tpg.cur_ip, c66_dc.orders_tpg.round, c66_dc.orders_tpg.creation_time, c66_dc.orders_tpg.remark, c66_dc.orders_tpg.hashcode, c66_dc.orders_tpg.jackpot_amount, c66_dc.orders_tpg.is_online, c66_dc.orders_tpg.fixed_time, c66_dc.orders_tpg.game_name, c66_dc.orders_tpg.branch_code, c66_dc.orders_tpg.branch_name, c66_dc.orders_tpg.site_id, c66_dc.orders_tpg.bet_site_id, c66_dc.orders_tpg.device_id, c66_dc.orders_tpg.apps_flyer_id, c66_dc.orders_tpg.tenant, c66_dc.orders_tpg.lineage, c66_dc.orders_tpg.channel, c66_dc.orders_tpg.reserved, c66_dc.orders_tpg.reserved2, c66_dc.orders_tpg.reserved3, c66_dc.orders_tpg.account_voucher, c66_dc.orders_tpg.payout_voucher, c66_dc.orders_tpg.account_principal, c66_dc.orders_tpg.jackpot_contribution, c66_dc.orders_tpg.tax_deduction_type, c66_dc.orders_tpg.tax_deduction_amount, c66_dc.orders_tpg.tax_deduction_rate, c66_dc.orders_tpg.assigned_branch_code, c66_dc.orders_tpg.assigned_branch_name\",\n    \"rootBasicExecInfo\": \"time:407.9ms, open:18.7\\u00b5s, close:6.33\\u00b5s, loops:2\",\n    \"rootGroupExecInfo\": [\n      \"Concurrency:OFF\"\n    ],\n    \"memoryBytes\": \"83216\",\n    \"diskBytes\": \"-1\"\n  },\n  \"withRuntimeStats\": true\n}",
    "stats_info": "ORDERS_TPG:465286137044271633[103678741;23309695]",
    "backoff": "\\N",
    "indexes_used": "[ORDERS_TPG:I_ORDERS_TPG_BT_B_P_P_RT]",
    "query_time": "0.557857385",
    "process_time": "1.075658676",
    "wait_time": "0.010415001",
    "total_keys": "391995",
    "process_keys": "776678"
  }
}