{
  "slow_queries": [
    {
      "source": "slow_query",
      "digest": "908792e63b56548d90d46345e2077cecc168cbb3a2f42baf6ef5e0a159930a05",
      "sql_preview": "delete from `c66_seamless_others` . `t_seamless_log_tiptop` where ( ( `id` between ? and ? ) and ( ( ( ? = ? ) and ( `created_time` >= ? ) ) and ( `created_time` < ? ) ) );",
      "exec_count": "4978",
      "avg_time": "1.26s",
      "max_time": "19.39s",
      "max_mem": "7272117",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=908792e63b56548d90d46345e2077cecc168cbb3a2f42baf6ef5e0a159930a05&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "ed185a3821972c8c916764d48152867ed0d432f30fecd8886fdffd40e16f91a2",
      "sql_preview": "select `id` , `login_name` , `wallet_type` , `accept_game` , `amount` , `currency` , `tenant` , `site_id` , `bet_site_id` , `branch_code` , `branch_name` , `term_type` , `cur_ip` , `active` , `revisio",
      "exec_count": "1834",
      "avg_time": "2.33s",
      "max_time": "20.43s",
      "max_mem": "260832",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=ed185a3821972c8c916764d48152867ed0d432f30fecd8886fdffd40e16f91a2&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "a028483d134b7c42638ad3bf0bde6f27d231dc6b0be42e437e3f7e389f71ec92",
      "sql_preview": "select `id` , `login_name` , `wallet_type` , `accept_game` , `amount` , `currency` , `tenant` , `site_id` , `bet_site_id` , `branch_code` , `branch_name` , `term_type` , `cur_ip` , `active` , `revisio",
      "exec_count": "1299",
      "avg_time": "3.84s",
      "max_time": "17.66s",
      "max_mem": "78792",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=a028483d134b7c42638ad3bf0bde6f27d231dc6b0be42e437e3f7e389f71ec92&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "bdadb2f390740bf4e08e3672e17d2c881ff9fbc75f7e2037c247a2511a7b5baa",
      "sql_preview": "update `t_seamless_wallet` set `amount` = ? , `updated_time` = ? , `sign` = ? , `revision` = `revision` + ? where `id` = ? and `revision` = ?;",
      "exec_count": "1297",
      "avg_time": "1.35s",
      "max_time": "17.96s",
      "max_mem": "271008",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=bdadb2f390740bf4e08e3672e17d2c881ff9fbc75f7e2037c247a2511a7b5baa&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "e08ee53094e60d98b56340925e2d6c905c346d4d3e53d49668e97335d9aeeff7",
      "sql_preview": "select `id` , `login_name` , `wallet_type` , `accept_game` , `amount` , `currency` , `tenant` , `site_id` , `bet_site_id` , `branch_code` , `branch_name` , `term_type` , `cur_ip` , `active` , `revisio",
      "exec_count": "1138",
      "avg_time": "2.58s",
      "max_time": "20.28s",
      "max_mem": "129168",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=e08ee53094e60d98b56340925e2d6c905c346d4d3e53d49668e97335d9aeeff7&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "4adbd55820b559f6ac86509afb5db4dc77766433ff07e2b2ec82b3098215fa0c",
      "sql_preview": "select `id` , `bill_no` , `login_name` , `before_amount` , `after_amount` , `amount` , `provider_name` , `game_name` , `wallet_type` , `reference_id` , `ref_reference_id` , `ref_reference_id2` , `roll",
      "exec_count": "1107",
      "avg_time": "1.55s",
      "max_time": "15.91s",
      "max_mem": "85070",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=4adbd55820b559f6ac86509afb5db4dc77766433ff07e2b2ec82b3098215fa0c&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "66c2010b01cc62f26b50c14db3529f0df49021ea2b368649e6fa50ad5517d72f",
      "sql_preview": "update `t_seamless_log_pg` set `async_status` = ? where `id` in ( ? );",
      "exec_count": "1046",
      "avg_time": "1.21s",
      "max_time": "15.91s",
      "max_mem": "144858",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=66c2010b01cc62f26b50c14db3529f0df49021ea2b368649e6fa50ad5517d72f&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "9505cacb7c710ed17125fcc6cb3669e8ddca6c8cd8af6a31f6b3cd64604c3098",
      "sql_preview": "commit;",
      "exec_count": "1003",
      "avg_time": "2.02s",
      "max_time": "18.01s",
      "max_mem": "155648",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=9505cacb7c710ed17125fcc6cb3669e8ddca6c8cd8af6a31f6b3cd64604c3098&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "1f8958548fc0cc9efedf1875a1524834095ae832dbc6f8e2baeafbba316e3cf2",
      "sql_preview": "show session_states;",
      "exec_count": "659",
      "avg_time": "2.56s",
      "max_time": "3.29s",
      "max_mem": "8192",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=1f8958548fc0cc9efedf1875a1524834095ae832dbc6f8e2baeafbba316e3cf2&from=1774951200&to=1774959060&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "01cc27dd8a6d7fe9081ddbb2d073a3ee64085e9bee724935e4691fd1e9b36f84",
      "sql_preview": "select @@session.transaction_read_only;",
      "exec_count": "574",
      "avg_time": "1.37s",
      "max_time": "17.73s",
      "max_mem": "16384",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10748116073341772391&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-seamless-others&deployType=premium&version=v8.5.4#/slow_query?digest=01cc27dd8a6d7fe9081ddbb2d073a3ee64085e9bee724935e4691fd1e9b36f84&from=1774951200&to=1774959060&show_internal=true&term="
    }
  ],
  "topsql": [],
  "decoded_plan": {
    "digest": "908792e63b56548d90d46345e2077cecc168cbb3a2f42baf6ef5e0a159930a05",
    "source": "slow_query",
    "full_sql": "delete from `c66_seamless_others` . `t_seamless_log_tiptop` where ( ( `id` between ? and ? ) and ( ( ( ? = ? ) and ( `created_time` >= ? ) ) and ( `created_time` < ? ) ) );",
    "decoded_plan": "{\n  \"main\": {\n    \"name\": \"Delete_4\",\n    \"children\": [\n      {\n        \"name\": \"SelectLock_8\",\n        \"children\": [\n          {\n            \"name\": \"TableReader_11\",\n            \"children\": [\n              {\n                \"name\": \"Selection_10\",\n                \"children\": [\n                  {\n                    \"name\": \"TableRangeScan_9\",\n                    \"cost\": 9103558568.467623,\n                    \"estRows\": 18772224.032776892,\n                    \"actRows\": \"5000\",\n                    \"taskType\": \"cop\",\n                    \"storeType\": \"tikv\",\n                    \"accessObjects\": [\n                      {\n                        \"scanObject\": {\n                          \"database\": \"c66_seamless_others\",\n                          \"table\": \"t_seamless_log_tiptop\"\n                        }\n                      }\n                    ],\n                    \"operatorInfo\": \"range:[?,?], keep order:false\",\n                    \"copExecInfo\": \"tikv_task:{proc max:8ms, min:1ms, avg: 3.6ms, p80:8ms, p95:8ms, iters:24, tasks:5}\",\n                    \"memoryBytes\": \"-1\",\n                    \"diskBytes\": \"-1\"\n                  }\n                ],\n                \"cost\": 10977026526.938757,\n                \"estRows\": 33478.914226434834,\n                \"actRows\": \"5000\",\n                \"taskType\": \"cop\",\n                \"storeType\": \"tikv\",\n                \"operatorInfo\": \"ge(c66_seamless_others.t_seamless_log_tiptop.created_time, ?), lt(c66_seamless_others.t_seamless_log_tiptop.created_time, ?)\",\n                \"copExecInfo\": \"tikv_task:{proc max:8ms, min:1ms, avg: 3.8ms, p80:8ms, p95:8ms, iters:24, tasks:5}, scan_detail: {total_process_keys: 5000, total_process_keys_size: 8470825, total_keys: 5005, get_snapshot_time: 38.4\\u00b5s, rocksdb: {block: {}}}, time_detail: {total_process_time: 20.3ms, total_suspend_time: 32.3\\u00b5s, total_wait_time: 86\\u00b5s, total_kv_read_wall_time: 18ms}\",\n                \"memoryBytes\": \"-1\",\n                \"diskBytes\": \"-1\"\n              }\n            ],\n            \"cost\": 733296877.8490473,\n            \"estRows\": 33478.914226434834,\n            \"actRows\": \"5000\",\n            \"taskType\": \"root\",\n            \"storeType\": \"tidb\",\n            \"operatorInfo\": \"data:Selection_10\",\n            \"rootBasicExecInfo\": \"time:34.7ms, open:56.5\\u00b5s, close:12.2\\u00b5s, loops:7\",\n            \"rootGroupExecInfo\": [\n              \"cop_task: {num: 5, max: 19.9ms, min: 6.13ms, avg: 12.3ms, p95: 19.9ms, max_proc_keys: 2016, p95_proc_keys: 2016, tot_proc: 20.3ms, tot_wait: 86\\u00b5s, copr_cache: disabled, build_task_duration: 15.6\\u00b5s, max_distsql_concurrency: 1}, fetch_resp_duration: 31.1ms, rpc_info:{Cop:{num_rpc:5, total_time:61.6ms}}\"\n            ],\n            \"memoryBytes\": \"514419\",\n            \"diskBytes\": \"-1\"\n          }\n        ],\n        \"cost\": 733296877.8490473,\n        \"estRows\": 33478.914226434834,\n        \"actRows\": \"5000\",\n        \"taskType\": \"root\",\n        \"storeType\": \"tidb\",\n        \"operatorInfo\": \"for update 0\",\n        \"rootBasicExecInfo\": \"time:81.1ms, open:57.1\\u00b5s, close:13.1\\u00b5s, loops:7\",\n        \"memoryBytes\": \"-1\",\n        \"diskBytes\": \"-1\"\n      }\n    ],\n    \"taskType\": \"root\",\n    \"storeType\": \"tidb\",\n    \"operatorInfo\": \"N/A\",\n    \"rootBasicExecInfo\": \"time:277.1ms, open:58.6\\u00b5s, close:13.8\\u00b5s, loops:2\",\n    \"rootGroupExecInfo\": [\n      \"commit_txn: {prewrite:105.5ms, get_commit_ts:372.3\\u00b5s, commit:11.2ms, slowest_prewrite_rpc: {total: 0.021s, region_id: 9318, store: db-125d9e7b-tikv-zlftsh.db-cluster.tidb2026948324023603200.svc.cluster.local:20160, }, commit_primary_rpc: {total: 0.005s, region_id: 395738, store: db-125d9e7b-tikv-3xh796.db-cluster.tidb2026948324023603200.svc.cluster.local:20160, }, region_num:3539, write_keys:30000, write_byte:1764686}, lock_keys: {time:90.4ms, region:17, keys:10000, slowest_rpc: {total: 0.017s, region_id: 395738, store: db-125d9e7b-tikv-3xh796.db-cluster.tidb2026948324023603200.svc.cluster.local:20160, }, lock_rpc:243.678195ms, rpc_count:12, retry_count:1}\"\n    ],\n    \"memoryBytes\": \"203672\",\n    \"diskBytes\": \"-1\"\n  },\n  \"withRuntimeStats\": true\n}",
    "stats_info": "t_seamless_log_tiptop:465292896947930967[23977778132;1207789160]",
    "backoff": "\\N",
    "indexes_used": "\\N",
    "query_time": "19.39318556",
    "process_time": "6.72255861",
    "wait_time": "0.006127718",
    "total_keys": "5996",
    "process_keys": "8829715"
  }
}