{
  "slow_queries": [
    {
      "source": "slow_query",
      "digest": "d8f5b58e3cf9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c",
      "sql_preview": "update `t_merchant_online` set `amount_by_day` = `amount_by_day` + ? , `total_amount` = `total_amount` + ? where `merchant_id` = ?;",
      "exec_count": "43388",
      "avg_time": "7.81s",
      "max_time": "18.17s",
      "max_mem": "446856",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=d8f5b58e3cf9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "1263c0b1abb18a08114a8f93a3159e61f8585a1f7db76495e9f4811d99c890cc",
      "sql_preview": "update `t_merchant_ol_pay_type` set `amount_by_day` = ? + `amount_by_day` , `last_deposit_date` = ? where `merchant_id` = ? and `pay_type` = ?;",
      "exec_count": "37286",
      "avg_time": "11.92s",
      "max_time": "21.87s",
      "max_mem": "375164",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=1263c0b1abb18a08114a8f93a3159e61f8585a1f7db76495e9f4811d99c890cc&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "e63a5a3721df7e879b7467bfe7e6feec4a48eb67e7a3d9f55d61e3671556f78c",
      "sql_preview": "select count ( ? ) from `t_product_tran` where ( `flag` = ? and `io_flag` = ? and ( `version_flag` is ? or `version_flag` = ? ) and `auto_flag` = ? and `bill_date` >= ? and `created_date` >= ? and `ch",
      "exec_count": "959",
      "avg_time": "0.94s",
      "max_time": "1.93s",
      "max_mem": "68631",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=e63a5a3721df7e879b7467bfe7e6feec4a48eb67e7a3d9f55d61e3671556f78c&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "31837fec6e728fe7c720032eee24c65f11119acc87dd902570c47ebe89892c60",
      "sql_preview": "select count ( ? ) from `t_product_tran` where ( `flag` = ? and `io_flag` = ? and `channel_code` = ? and `created_date` >= ? );",
      "exec_count": "633",
      "avg_time": "0.46s",
      "max_time": "1.72s",
      "max_mem": "49292",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=31837fec6e728fe7c720032eee24c65f11119acc87dd902570c47ebe89892c60&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "81480b587869e7ce1fe5e0392b720937bcbb420338542e73078af552fc2c471f",
      "sql_preview": "select `id` , `product_id` , `tran_source` , `flag` , `io_flag` , `merchant_id` , `channel_code` , `urgent` , `bill_flag` , `bill_no` , `bill_amount` , `bill_date` , `additional_amount` , `currency` ,",
      "exec_count": "120",
      "avg_time": "1.97s",
      "max_time": "2.15s",
      "max_mem": "55816",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=81480b587869e7ce1fe5e0392b720937bcbb420338542e73078af552fc2c471f&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "a3da08f5565c28177fe62944f4fdda2eea34fabe04edf26c458f57d7b50160dd",
      "sql_preview": "select `id` , `product_id` , `tran_source` , `flag` , `io_flag` , `merchant_id` , `channel_code` , `urgent` , `bill_flag` , `bill_no` , `bill_amount` , `bill_date` , `additional_amount` , `currency` ,",
      "exec_count": "107",
      "avg_time": "1.41s",
      "max_time": "1.90s",
      "max_mem": "55856",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=a3da08f5565c28177fe62944f4fdda2eea34fabe04edf26c458f57d7b50160dd&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "c84d6df4529b65884ecf596dbd73113f9af646a213814efd9908a6947e2bcd46",
      "sql_preview": "select `id` , `product_id` , `tran_source` , `flag` , `io_flag` , `merchant_id` , `channel_code` , `urgent` , `bill_flag` , `bill_no` , `bill_amount` , `bill_date` , `additional_amount` , `currency` ,",
      "exec_count": "86",
      "avg_time": "0.32s",
      "max_time": "0.50s",
      "max_mem": "60508",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=c84d6df4529b65884ecf596dbd73113f9af646a213814efd9908a6947e2bcd46&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "c538d94fae384d939d9432a100938713ddd47d4c6cd519f9b96bdfc56a856e9f",
      "sql_preview": "select `id` from `t_order_ol` where `flag` = ? and `created_date` >= ? and `created_date` <= ? and `channel_code` in ( ... );",
      "exec_count": "60",
      "avg_time": "2.94s",
      "max_time": "3.20s",
      "max_mem": "773616",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=c538d94fae384d939d9432a100938713ddd47d4c6cd519f9b96bdfc56a856e9f&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "0a8a00476f15aaac340c34c819f0d5c1179aa2af7970a4230e8d8acc2255cae6",
      "sql_preview": "select `flag` , count ( ? ) as `quantity` from `t_product_tran` where `flag` in ( ... ) and `created_date` > date_add ( curdate ( ) , interval - ? day ) group by `flag`;",
      "exec_count": "3",
      "avg_time": "0.51s",
      "max_time": "0.70s",
      "max_mem": "8192",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=0a8a00476f15aaac340c34c819f0d5c1179aa2af7970a4230e8d8acc2255cae6&from=1773029640&to=1773033240&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "1f12f6e333d2a264e0da279518eed3312a8b3d8e558258b90233eff82db0eae8",
      "sql_preview": "select `ifnull` ( sum ( `t` . `tran_amount` ) , ? ) as `transamount` , `ifnull` ( sum ( case when `t` . `io_flag` = ? then `t` . `tran_amount` end ) , ? ) as `depositamount` , `ifnull` ( sum ( case wh",
      "exec_count": "1",
      "avg_time": "0.92s",
      "max_time": "0.92s",
      "max_mem": "399390",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10805087899823024166&provider=alicloud&region=ap-southeast-1&orgName=DigiPlus%27s%20Org&orgId=1372813089209289635&projectId=1372813089454736199&clusterName=prod-c66-capital&deployType=premium&version=v8.5.4#/slow_query?digest=1f12f6e333d2a264e0da279518eed3312a8b3d8e558258b90233eff82db0eae8&from=1773029640&to=1773033240&show_internal=true&term="
    }
  ],
  "topsql": [],
  "decoded_plan": {
    "digest": "d8f5b58e3cf9ae1cb7cd7d9d68991ee63399a5df1ca613ad58b6040f3541617c",
    "source": "slow_query",
    "full_sql": "update `t_merchant_online` set `amount_by_day` = `amount_by_day` + ? , `total_amount` = `total_amount` + ? where `merchant_id` = ?;",
    "decoded_plan": "{\n  \"main\": {\n    \"name\": \"Update_4\",\n    \"children\": [\n      {\n        \"name\": \"Point_Get_1\",\n        \"estRows\": 1.0,\n        \"actRows\": \"1\",\n        \"taskType\": \"root\",\n        \"storeType\": \"tidb\",\n        \"accessObjects\": [\n          {\n            \"scanObject\": {\n              \"database\": \"c66_capital\",\n              \"table\": \"T_MERCHANT_ONLINE\"\n            }\n          }\n        ],\n        \"operatorInfo\": \"handle:?, lock\",\n        \"rootBasicExecInfo\": \"total_time:8.76s, total_open:79.7\\u00b5s, total_close:289.7\\u00b5s, loops:192\",\n        \"memoryBytes\": \"-1\",\n        \"diskBytes\": \"-1\"\n      }\n    ],\n    \"taskType\": \"root\",\n    \"storeType\": \"tidb\",\n    \"operatorInfo\": \"N/A\",\n    \"rootBasicExecInfo\": \"total_time:8.81s, total_open:205.3\\u00b5s, total_close:582.3\\u00b5s, loops:192\",\n    \"rootGroupExecInfo\": [\n      \"commit_txn: {prewrite:2.85ms, slowest_prewrite_rpc: {total: 0.003s, region_id: 22587, store: db-a924bb0f-tikv-29grsn.db-cluster.tidb2028998946604449792.svc.cluster.local:20160, }, region_num:1, write_keys:2, write_byte:3254}, lock_keys: {time:8.8s, region:192, keys:192, slowest_rpc: {total: 0.045s, region_id: 22587, store: db-a924bb0f-tikv-29grsn.db-cluster.tidb2028998946604449792.svc.cluster.local:20160, }, lock_rpc:8.791822669s, retry_count:191}\"\n    ],\n    \"diskBytes\": \"-1\"\n  },\n  \"withRuntimeStats\": true\n}",
    "stats_info": "\\N",
    "backoff": "\\N",
    "indexes_used": "\\N",
    "query_time": "18.165235299",
    "process_time": "\\N",
    "wait_time": "\\N",
    "total_keys": "\\N",
    "process_keys": "\\N"
  }
}