{
  "slow_queries": [
    {
      "source": "slow_query",
      "digest": "fe60d105157bc3b63640b11cf7afd70fea2d37005981e81570c38f7d433a63c1",
      "sql_preview": "select `p` . * from `catalogs` `c` join `catalogs` `pc` on `pc` . `id` = `c` . `parent_id` join `catalogs_items` `ci` on `ci` . `catalog_id` = `c` . `id` join `stock_items` `si` on `si` . `product_ite",
      "exec_count": "16432",
      "avg_time": "1.31s",
      "max_time": "6.12s",
      "max_mem": "56442965",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=fe60d105157bc3b63640b11cf7afd70fea2d37005981e81570c38f7d433a63c1&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "7d16d744c6efc0209b47c07e77fc6da74472f44bd62f092b6a1e78b5f6c17eeb",
      "sql_preview": "select `ssi` . * , if ( `si` . `use_dispensing_fee_override` and `si` . `dispensing_fee_override` is not ? , `si` . `dispensing_fee_override` , ? ) as `dispensing_fee` from `stock_supply_items` `ssi` ",
      "exec_count": "8225",
      "avg_time": "0.51s",
      "max_time": "2.54s",
      "max_mem": "834204",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=7d16d744c6efc0209b47c07e77fc6da74472f44bd62f092b6a1e78b5f6c17eeb&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "aceb8194887183838285f3ab7390d29c97f341850a2595654d7330b037dad0cb",
      "sql_preview": "select * from `stock_grouped_products` where `stock_item_id` = ? and `deleted_at` is ?;",
      "exec_count": "6195",
      "avg_time": "0.50s",
      "max_time": "2.41s",
      "max_mem": "256513",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=aceb8194887183838285f3ab7390d29c97f341850a2595654d7330b037dad0cb&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "ed8273ab1df2f5efc9de90568b43925304f5241e71f50919bb22488d43b86b42",
      "sql_preview": "select * from `stock_grouped_product_items` where `stock_group_id` = ?;",
      "exec_count": "4675",
      "avg_time": "0.51s",
      "max_time": "2.60s",
      "max_mem": "266157",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=ed8273ab1df2f5efc9de90568b43925304f5241e71f50919bb22488d43b86b42&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "444443f121940de6b00c13c760bc22d7eef80b0094b23760e702ab137d01f3cf",
      "sql_preview": "select * from variables `v` where `v` . `key` = ? limit ?;",
      "exec_count": "4494",
      "avg_time": "0.48s",
      "max_time": "2.25s",
      "max_mem": "90558",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=444443f121940de6b00c13c760bc22d7eef80b0094b23760e702ab137d01f3cf&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "7f3abcf67ef0848c172651c646545ad6f9e6834f0023079b6512fbbc3e46b4e4",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `item_description` , `pit` . `invoice_title` , ",
      "exec_count": "3729",
      "avg_time": "0.56s",
      "max_time": "3.67s",
      "max_mem": "13891193",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=7f3abcf67ef0848c172651c646545ad6f9e6834f0023079b6512fbbc3e46b4e4&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "57429589f0a642037f139d2012c12b51df3b971d1a4177ee864bbe9d2bc1208a",
      "sql_preview": "delete from `hubspot` . `pending_events` where `entity_type` = ? and `id` <= ? and `entity_id` = ?;",
      "exec_count": "3324",
      "avg_time": "0.42s",
      "max_time": "2.12s",
      "max_mem": "116176",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=57429589f0a642037f139d2012c12b51df3b971d1a4177ee864bbe9d2bc1208a&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "80152280450816ee45a82f125ad3ce5a66c8cda6ecaf85c6585149412d93a85d",
      "sql_preview": "select `catalogs` . `id` , `catalogs` . `order` , `catalogs` . `parent_id` , `catalogs` . `catalog_type` , `catalogs` . `shortcut` , `catalogs` . `settings` , `catalogs` . `content_type` , `catalog_tr",
      "exec_count": "3234",
      "avg_time": "0.67s",
      "max_time": "4.25s",
      "max_mem": "391017",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=80152280450816ee45a82f125ad3ce5a66c8cda6ecaf85c6585149412d93a85d&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "d56f717b4ee38f7ad5588974f9f52c72dddb5e8983dc5af123b40768ff3183f6",
      "sql_preview": "select /*+ read_from_storage(tiflash[s,product_catalog,parent_catalog,ci,si,ssi,sdoc]) */ `s` . `pharmacy_id` from `catalogs` `parent_catalog` inner join `catalogs` `product_catalog` on `product_catal",
      "exec_count": "2664",
      "avg_time": "0.72s",
      "max_time": "5.60s",
      "max_mem": "20480",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=d56f717b4ee38f7ad5588974f9f52c72dddb5e8983dc5af123b40768ff3183f6&from=1775551620&to=1775558520&show_internal=true&term="
    },
    {
      "source": "slow_query",
      "digest": "c4ddf9670491db492c760cd9ab1116355f91b1db318b27241eef820d6c186ad1",
      "sql_preview": "select sum ( `pi` . `quantity` * `op` . `quantity` ) as `total_quantity` from `orders` `o` left join `orders` `o2` on `o2` . `id` = `o` . `parent_id` join `order_payments` `opy` on `opy` . `order_id` ",
      "exec_count": "2334",
      "avg_time": "0.64s",
      "max_time": "3.81s",
      "max_mem": "328813",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/slow_query?digest=c4ddf9670491db492c760cd9ab1116355f91b1db318b27241eef820d6c186ad1&from=1775551620&to=1775558520&show_internal=true&term="
    }
  ],
  "topsql": [
    {
      "component": "TiDB",
      "digest": "FE60D105157BC3B63640B11CF7AFD70FEA2D37005981E81570C38F7D433A63C1",
      "sql_preview": "select `p` . * from `catalogs` `c` join `catalogs` `pc` on `pc` . `id` = `c` . `parent_id` join `catalogs_items` `ci` on `ci` . `catalog_id` = `c` . `id` join `stock_items` `si` on `si` . `product_ite",
      "cpu_ms": "16452100",
      "cpu_pct": 52.54,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "",
      "sql_preview": "",
      "cpu_ms": "2154530",
      "cpu_pct": 6.88,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "7D16D744C6EFC0209B47C07E77FC6DA74472F44BD62F092B6A1E78B5F6C17EEB",
      "sql_preview": "select `ssi` . * , if ( `si` . `use_dispensing_fee_override` and `si` . `dispensing_fee_override` is not ? , `si` . `dispensing_fee_override` , ? ) as `dispensing_fee` from `stock_supply_items` `ssi` ",
      "cpu_ms": "941020",
      "cpu_pct": 3.01,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "AF2DBD66536C568E424CCE242D3AAEA5320753E1E5E208868E051CD83AB2C14E",
      "sql_preview": "select `pi` . `id` as `product_item_id` , `pi` . `product_id` , `pi` . `quantity` , `pip` . `price` , `ct` . `title` , `ct` . `description` , `pt` . `title` as `product_title` , `pt` . `dosage_str` , ",
      "cpu_ms": "533810",
      "cpu_pct": 1.7,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "A43739482A077387CB28A052DC6DBEBB5A881A7C941815DB81E71C2ACA496F49",
      "sql_preview": "select count ( distinct `orders` . `id` ) as `count` from `orders` inner join `order_prescriptions` as `order_prescriptions` on `order_prescriptions` . `order_id` = `orders` . `id` inner join `custome",
      "cpu_ms": "420480",
      "cpu_pct": 1.34,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "80152280450816EE45A82F125AD3CE5A66C8CDA6ECAF85C6585149412D93A85D",
      "sql_preview": "select `catalogs` . `id` , `catalogs` . `order` , `catalogs` . `parent_id` , `catalogs` . `catalog_type` , `catalogs` . `shortcut` , `catalogs` . `settings` , `catalogs` . `content_type` , `catalog_tr",
      "cpu_ms": "411030",
      "cpu_pct": 1.31,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "BA188BAE135BAA156F9AFAF333F438FD7091C22CA5BC88361C1EEC50A52CFF83",
      "sql_preview": "",
      "cpu_ms": "400090",
      "cpu_pct": 1.28,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "A4754370DCF2D4061196592C34014124EDB599C09B66D7439B21D3B1BC94E2F3",
      "sql_preview": "select `filter_name` , `content` from `mysql` . `audit_log_filters`",
      "cpu_ms": "400020",
      "cpu_pct": 1.28,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "7F3ABCF67EF0848C172651C646545AD6F9E6834F0023079B6512FBBC3E46B4E4",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `item_description` , `pit` . `invoice_title` , ",
      "cpu_ms": "379420",
      "cpu_pct": 1.21,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiDB",
      "digest": "5D1A35D876A48ECF630CD9FCA60B51826465A209874385F467E072F6B3CF7F50",
      "sql_preview": "select `product_items` . `id` , json_objectagg ( `product_translations` . `language_id` , `product_translations` . `title` ) as `titles` from `product_items` inner join `products` on `product_items` .",
      "cpu_ms": "337640",
      "cpu_pct": 1.08,
      "instance": "db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc:10080",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tidb-0.db-tidb-peer.tidb10322500445237050222.svc%3A10080"
    },
    {
      "component": "TiKV",
      "digest": "C8E100FE0DCD40784B83FEAA1D95BB6A0A9A6E2B91196A70A8E50CC2D571F8EE",
      "sql_preview": "select `ssi` . * , sum ( `ssi` . `for_sale` ) as `for_sale` from `catalogs` `product_catalog` join `catalogs` `parent_catalog` on `parent_catalog` . `id` = `product_catalog` . `parent_id` join `catalo",
      "cpu_ms": "3063488",
      "cpu_pct": 0.0,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "57429589F0A642037F139D2012C12B51DF3B971D1A4177EE864BBE9D2BC1208A",
      "sql_preview": "delete from `hubspot` . `pending_events` where `entity_type` = ? and `id` <= ? and `entity_id` = ?",
      "cpu_ms": "3022705",
      "cpu_pct": 0.0,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "7F3ABCF67EF0848C172651C646545AD6F9E6834F0023079B6512FBBC3E46B4E4",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `item_description` , `pit` . `invoice_title` , ",
      "cpu_ms": "2034477",
      "cpu_pct": 0.0,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "567C339CE50CB5F3E91074BFFABA9C280DAEF3E2C836BC374DF4E4FB577B5052",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `invoice_title` , `a` . `base_path` , `a` . `ow",
      "cpu_ms": "1092928",
      "cpu_pct": 0.0,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "FCA0333F2B16409F49326ED75D419DEC8E06840008C21575D0F5DA3990D13DC6",
      "sql_preview": "select `order_products` . `product_item_id` , `quantity` , `catalog_translations` . `mention` as `category_mention` , `order_products` . `is_prescription_drug` , `catalogs` . `id` as `catalog_id` , `c",
      "cpu_ms": "948580",
      "cpu_pct": 0.0,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "57429589F0A642037F139D2012C12B51DF3B971D1A4177EE864BBE9D2BC1208A",
      "sql_preview": "delete from `hubspot` . `pending_events` where `entity_type` = ? and `id` <= ? and `entity_id` = ?",
      "cpu_ms": "903370",
      "cpu_pct": 0.0,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "2E4E0A2EFB1CAEC26B98BF37A75C72BC72958FE87DF92F11BA9A41652BD700D0",
      "sql_preview": "select `ces` . * from `composed_email_ses_retries` `ces` join `composed_emails` `ce` on `ce` . `id` = `ces` . `composed_email_id` where status = ? and `ce` . `was_retried_by_ses` = ? and `ce` . `was_r",
      "cpu_ms": "728510",
      "cpu_pct": 0.0,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "0B5F28853D02AEB1EB76BE188176A4C6D8CC5AAE3CC09483A2841F9398F53A49",
      "sql_preview": "select `menu_items` . `order` , `mit` . `text` , `route_aliases` . `uri` from `menus` join `menu_items` on `menus` . `id` = `menu_items` . `menu_id` join `menu_item_translations` `mit` on `mit` . `men",
      "cpu_ms": "632332",
      "cpu_pct": 0.0,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "9FC999945A93F7608E343E8ED5479186EA7DDFD2DDF370990092B727CFE90C9D",
      "sql_preview": "select `stock_items` . `id` as `siid` from `subscriptions` join `orders` on `subscriptions` . `order_id` = `orders` . `id` join `order_products` on `orders` . `id` = `order_products` . `order_id` join",
      "cpu_ms": "575998",
      "cpu_pct": 0.0,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV",
      "digest": "7F3ABCF67EF0848C172651C646545AD6F9E6834F0023079B6512FBBC3E46B4E4",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `item_description` , `pit` . `invoice_title` , ",
      "cpu_ms": "560130",
      "cpu_pct": 0.0,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "C8E100FE0DCD40784B83FEAA1D95BB6A0A9A6E2B91196A70A8E50CC2D571F8EE",
      "sql_preview": "select `ssi` . * , sum ( `ssi` . `for_sale` ) as `for_sale` from `catalogs` `product_catalog` join `catalogs` `parent_catalog` on `parent_catalog` . `id` = `product_catalog` . `parent_id` join `catalo",
      "cpu_ms": "3063488",
      "cpu_pct": 26.48,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "7F3ABCF67EF0848C172651C646545AD6F9E6834F0023079B6512FBBC3E46B4E4",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `item_description` , `pit` . `invoice_title` , ",
      "cpu_ms": "2034477",
      "cpu_pct": 17.58,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "567C339CE50CB5F3E91074BFFABA9C280DAEF3E2C836BC374DF4E4FB577B5052",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `invoice_title` , `a` . `base_path` , `a` . `ow",
      "cpu_ms": "1092928",
      "cpu_pct": 9.45,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "FCA0333F2B16409F49326ED75D419DEC8E06840008C21575D0F5DA3990D13DC6",
      "sql_preview": "select `order_products` . `product_item_id` , `quantity` , `catalog_translations` . `mention` as `category_mention` , `order_products` . `is_prescription_drug` , `catalogs` . `id` as `catalog_id` , `c",
      "cpu_ms": "948580",
      "cpu_pct": 8.2,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "57429589F0A642037F139D2012C12B51DF3B971D1A4177EE864BBE9D2BC1208A",
      "sql_preview": "delete from `hubspot` . `pending_events` where `entity_type` = ? and `id` <= ? and `entity_id` = ?",
      "cpu_ms": "903370",
      "cpu_pct": 7.81,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "9FC999945A93F7608E343E8ED5479186EA7DDFD2DDF370990092B727CFE90C9D",
      "sql_preview": "select `stock_items` . `id` as `siid` from `subscriptions` join `orders` on `subscriptions` . `order_id` = `orders` . `id` join `order_products` on `orders` . `id` = `order_products` . `order_id` join",
      "cpu_ms": "224610",
      "cpu_pct": 1.94,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "4591C4C9EC2F97A89ED23A1CE882058430F178ECE6F6AB77D9C1A11D401C552C",
      "sql_preview": "select `sgp` . `stock_item_id` as `group_stock_item_id` , `sgpi` . * from `stock_grouped_product_items` `sgpi` join `stock_grouped_products` `sgp` on `sgp` . `id` = `sgpi` . `stock_group_id` join `sto",
      "cpu_ms": "201602",
      "cpu_pct": 1.74,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "BB4716A240A4085AC4E5342AA4E4DD5C33C879A96F6D77B266B58027813BAD63",
      "sql_preview": "select * from `assets` where `owner_id` = ? and `base_path` like ? and type = ? limit ?",
      "cpu_ms": "181486",
      "cpu_pct": 1.57,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "059C952C6F519E8A02E39FF522ECA9D38D4035264B8728EEA712EFA6FA74A44C",
      "sql_preview": "select * from `composed_emails` where `external_status` = ? and `was_retried_by_ses` = ? and `was_retried_by_alt_domain` = ? and `send_after` between now ( ) - interval ? hour and now ( )",
      "cpu_ms": "178579",
      "cpu_pct": 1.54,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "08F851F41857F47BEE948814713A3E0ADD9A9741845E3ED18122C7100B5979E4",
      "sql_preview": "select `c` . `id` `catalog_id` , `s` . `pharmacy_id` `pharmacy_id` , `s` . `id` `stock_id` , `s` . `code` `stock_code` , `ssi` . `for_sale` , ( `ssi` . `supply_price` / `pi` . `quantity` ) as `price_p",
      "cpu_ms": "134399",
      "cpu_pct": 1.16,
      "instance": "db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-2.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "57429589F0A642037F139D2012C12B51DF3B971D1A4177EE864BBE9D2BC1208A",
      "sql_preview": "delete from `hubspot` . `pending_events` where `entity_type` = ? and `id` <= ? and `entity_id` = ?",
      "cpu_ms": "3022705",
      "cpu_pct": 37.88,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "0B5F28853D02AEB1EB76BE188176A4C6D8CC5AAE3CC09483A2841F9398F53A49",
      "sql_preview": "select `menu_items` . `order` , `mit` . `text` , `route_aliases` . `uri` from `menus` join `menu_items` on `menus` . `id` = `menu_items` . `menu_id` join `menu_item_translations` `mit` on `mit` . `men",
      "cpu_ms": "632332",
      "cpu_pct": 7.92,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "9FC999945A93F7608E343E8ED5479186EA7DDFD2DDF370990092B727CFE90C9D",
      "sql_preview": "select `stock_items` . `id` as `siid` from `subscriptions` join `orders` on `subscriptions` . `order_id` = `orders` . `id` join `order_products` on `orders` . `id` = `order_products` . `order_id` join",
      "cpu_ms": "575998",
      "cpu_pct": 7.22,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "7F3ABCF67EF0848C172651C646545AD6F9E6834F0023079B6512FBBC3E46B4E4",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `item_description` , `pit` . `invoice_title` , ",
      "cpu_ms": "425741",
      "cpu_pct": 5.34,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "C9537C319D4DB8F44C35015CCA86745CD9943CD87F1ED55786B03486C501566C",
      "sql_preview": "select * from `confirmations` where `email` = ? and `used` = ? and action = ? and `expired_at` > now ( ) order by `created_at` limit ?",
      "cpu_ms": "235472",
      "cpu_pct": 2.95,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "B38D24B75FF1F8A096DB4AC59D75D9E589732F71EC883A30BB1155E1E6DC7BE0",
      "sql_preview": "select count ( ? ) as `count` from `orders` inner join `order_shippings` on `orders` . `id` = `order_shippings` . `order_id` inner join `order_shipments` on `orders` . `id` = `order_shipments` . `orde",
      "cpu_ms": "161238",
      "cpu_pct": 2.02,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "DA0011EDA8C0E6F13BB8EE1C2CF5FEA6B75B8B21EAE9EF4C02A213A8EC318F55",
      "sql_preview": "select * from `product_item_prices` where `country_id` = ?",
      "cpu_ms": "159010",
      "cpu_pct": 1.99,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "6BB9B52D519AAC8B67029F96BD7D71BCE8327DB098812A6E45270EF23FFFD11A",
      "sql_preview": "select `customer_support_ticket_id` from `hubspot` . `tickets` where `hubspot_object_id` = ?",
      "cpu_ms": "145533",
      "cpu_pct": 1.82,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "5D1A35D876A48ECF630CD9FCA60B51826465A209874385F467E072F6B3CF7F50",
      "sql_preview": "select `product_items` . `id` , json_objectagg ( `product_translations` . `language_id` , `product_translations` . `title` ) as `titles` from `product_items` inner join `products` on `product_items` .",
      "cpu_ms": "129161",
      "cpu_pct": 1.62,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "AF2DBD66536C568E424CCE242D3AAEA5320753E1E5E208868E051CD83AB2C14E",
      "sql_preview": "select `pi` . `id` as `product_item_id` , `pi` . `product_id` , `pi` . `quantity` , `pip` . `price` , `ct` . `title` , `ct` . `description` , `pt` . `title` as `product_title` , `pt` . `dosage_str` , ",
      "cpu_ms": "126884",
      "cpu_pct": 1.59,
      "instance": "db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-1.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "2E4E0A2EFB1CAEC26B98BF37A75C72BC72958FE87DF92F11BA9A41652BD700D0",
      "sql_preview": "select `ces` . * from `composed_email_ses_retries` `ces` join `composed_emails` `ce` on `ce` . `id` = `ces` . `composed_email_id` where status = ? and `ce` . `was_retried_by_ses` = ? and `ce` . `was_r",
      "cpu_ms": "728510",
      "cpu_pct": 11.51,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "7F3ABCF67EF0848C172651C646545AD6F9E6834F0023079B6512FBBC3E46B4E4",
      "sql_preview": "select `pi` . * , `pt` . `short_title` , `pt` . `title` , `pt` . `product_description` , `pt` . `dosage_str` , `pit` . `custom_quantity_title` , `pit` . `item_description` , `pit` . `invoice_title` , ",
      "cpu_ms": "560130",
      "cpu_pct": 8.85,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "9FC999945A93F7608E343E8ED5479186EA7DDFD2DDF370990092B727CFE90C9D",
      "sql_preview": "select `stock_items` . `id` as `siid` from `subscriptions` join `orders` on `subscriptions` . `order_id` = `orders` . `id` join `order_products` on `orders` . `id` = `order_products` . `order_id` join",
      "cpu_ms": "483990",
      "cpu_pct": 7.65,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "C8E100FE0DCD40784B83FEAA1D95BB6A0A9A6E2B91196A70A8E50CC2D571F8EE",
      "sql_preview": "select `ssi` . * , sum ( `ssi` . `for_sale` ) as `for_sale` from `catalogs` `product_catalog` join `catalogs` `parent_catalog` on `parent_catalog` . `id` = `product_catalog` . `parent_id` join `catalo",
      "cpu_ms": "400465",
      "cpu_pct": 6.33,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "08F851F41857F47BEE948814713A3E0ADD9A9741845E3ED18122C7100B5979E4",
      "sql_preview": "select `c` . `id` `catalog_id` , `s` . `pharmacy_id` `pharmacy_id` , `s` . `id` `stock_id` , `s` . `code` `stock_code` , `ssi` . `for_sale` , ( `ssi` . `supply_price` / `pi` . `quantity` ) as `price_p",
      "cpu_ms": "319725",
      "cpu_pct": 5.05,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "AF2DBD66536C568E424CCE242D3AAEA5320753E1E5E208868E051CD83AB2C14E",
      "sql_preview": "select `pi` . `id` as `product_item_id` , `pi` . `product_id` , `pi` . `quantity` , `pip` . `price` , `ct` . `title` , `ct` . `description` , `pt` . `title` as `product_title` , `pt` . `dosage_str` , ",
      "cpu_ms": "263361",
      "cpu_pct": 4.16,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "B9E3C1822040F2DC5EC251D8FDAEBCDD4E1F0D4AF4636FB2EA36848D8553F4D3",
      "sql_preview": "select `mention` , `catalog_id` , `catalogs` . * from `catalogs` join `catalog_translations` on `catalogs` . `id` = `catalog_translations` . `catalog_id` where `mention` = ? and `country_id` = ? order",
      "cpu_ms": "224315",
      "cpu_pct": 3.54,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "B38D24B75FF1F8A096DB4AC59D75D9E589732F71EC883A30BB1155E1E6DC7BE0",
      "sql_preview": "select count ( ? ) as `count` from `orders` inner join `order_shippings` on `orders` . `id` = `order_shippings` . `order_id` inner join `order_shipments` on `orders` . `id` = `order_shipments` . `orde",
      "cpu_ms": "204780",
      "cpu_pct": 3.24,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "DA0011EDA8C0E6F13BB8EE1C2CF5FEA6B75B8B21EAE9EF4C02A213A8EC318F55",
      "sql_preview": "select * from `product_item_prices` where `country_id` = ?",
      "cpu_ms": "187574",
      "cpu_pct": 2.96,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    },
    {
      "component": "TiKV hot instance",
      "digest": "85F82E841E3FA74DEA020392CF2D0DAFAB5B893BCDEBC71BB5D323F4F80DCC90",
      "sql_preview": "select distinct `catalogs_items` . `product_item_id` from `catalogs_items` left join `catalogs` on `catalogs` . `id` = `catalogs_items` . `catalog_id` left join `catalogs` `catalogs2` on `catalogs2` .",
      "cpu_ms": "159486",
      "cpu_pct": 2.52,
      "instance": "db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc:20160",
      "link": "https://clinic.pingcap.com/portal/dashboard/cloud/ngm.html?clusterId=10322500445237050222&provider=aws&region=eu-central-1&orgName=Helfy&orgId=1372813089209262891&projectId=1372813089454580591&clusterName=production&deployType=dedicated&version=v8.1.2#/topsql?from=1775551620&to=1775558520&instance=db-tikv-0.db-tikv-peer.tidb10322500445237050222.svc%3A20160"
    }
  ],
  "decoded_plan": {
    "digest": "C8E100FE0DCD40784B83FEAA1D95BB6A0A9A6E2B91196A70A8E50CC2D571F8EE",
    "source": "topsql_tikv_hot:db-tikv-2",
    "full_sql": "select `ssi` . * , sum ( `ssi` . `for_sale` ) as `for_sale` from `catalogs` `product_catalog` join `catalogs` `parent_catalog` on `parent_catalog` . `id` = `product_catalog` . `parent_id` join `catalogs_items` `ci` on `ci` . `catalog_id` = `product_catalog` . `id` join `stock_items` `si` on `si` . `product_item_id` = `ci` . `product_item_id` join `stock_supply_items` `ssi` on `ssi` . `stock_item_id` = `si` . `id` join `stocks` `s` on `s` . `id` = `si` . `stock_id` where `parent_catalog` . `id` = ? and `s` . `enabled` = ? and `si` . `suspended` = ? and `si` . `internally_suspended` = ? and `ssi` . `for_sale` > ? group by `ssi` . `id`;",
    "decoded_plan": "{\n  \"main\": {\n    \"name\": \"Projection_27\",\n    \"children\": [\n      {\n        \"name\": \"HashAgg_28\",\n        \"children\": [\n          {\n            \"name\": \"Projection_243\",\n            \"children\": [\n              {\n                \"name\": \"HashJoin_32\",\n                \"children\": [\n                  {\n                    \"name\": \"HashJoin_47\",\n                    \"children\": [\n                      {\n                        \"name\": \"IndexJoin_77\",\n                        \"children\": [\n                          {\n                            \"name\": \"IndexHashJoin_137\",\n                            \"children\": [\n                              {\n                                \"name\": \"IndexHashJoin_177\",\n                                \"children\": [\n                                  {\n                                    \"name\": \"TableReader_209\",\n                                    \"children\": [\n                                      {\n                                        \"name\": \"Selection_208\",\n                                        \"children\": [\n                                          {\n                                            \"name\": \"TableFullScan_207\",\n                                            \"cost\": 51229.24801054597,\n                                            \"estRows\": 141.0,\n                                            \"actRows\": \"141\",\n                                            \"taskType\": \"cop\",\n                                            \"storeType\": \"tikv\",\n                                            \"accessObjects\": [\n                                              {\n                                                \"scanObject\": {\n                                                  \"database\": \"doctor2\",\n                                                  \"table\": \"s\"\n                                                }\n                                              }\n                                            ],\n                                            \"operatorInfo\": \"keep order:false, stats:partial[id:unInitialized, enabled:unInitialized]\",\n                                            \"copExecInfo\": \"tikv_task:{time:0s, loops:3}\",\n                                            \"memoryBytes\": \"-1\",\n                                            \"diskBytes\": \"-1\"\n                                          }\n                                        ],\n                                        \"cost\": 58265.14801054597,\n                                        \"estRows\": 0.14099999999999996,\n                                        \"actRows\": \"94\",\n                                        \"taskType\": \"cop\",\n                                        \"storeType\": \"tikv\",\n                                        \"operatorInfo\": \"eq(doctor2.stocks.enabled, ?)\",\n                                        \"copExecInfo\": \"tikv_task:{time:0s, loops:3}, scan_detail: {total_process_keys: 141, total_process_keys_size: 29604, total_keys: 224, get_snapshot_time: 13.4\\u00b5s, rocksdb: {key_skipped_count: 210, block: {cache_hit_count: 28}}}, time_detail: {total_process_time: 437.8\\u00b5s, total_wait_time: 28.2\\u00b5s, tikv_wall_time: 576.9\\u00b5s}\",\n                                        \"memoryBytes\": \"-1\",\n                                        \"diskBytes\": \"-1\"\n                                      }\n                                    ],\n                                    \"labels\": [\n                                      \"buildSide\"\n                                    ],\n                                    \"cost\": 3885.5343687030645,\n                                    \"estRows\": 0.14099999999999996,\n                                    \"actRows\": \"94\",\n                                    \"taskType\": \"root\",\n                                    \"storeType\": \"tidb\",\n                                    \"operatorInfo\": \"data:Selection_208\",\n                                    \"rootBasicExecInfo\": \"time:33.6ms, loops:5\",\n                                    \"rootGroupExecInfo\": [\n                                      \"cop_task: {num: 1, max: 37.9ms, proc_keys: 141, tot_proc: 437.8\\u00b5s, tot_wait: 28.2\\u00b5s, copr_cache: disabled, build_task_duration: 11.7\\u00b5s, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:1, total_time:37.8ms}}\"\n                                    ],\n                                    \"memoryBytes\": \"1823\",\n                                    \"diskBytes\": \"-1\"\n                                  },\n                                  {\n                                    \"name\": \"IndexLookUp_174\",\n                                    \"children\": [\n                                      {\n                                        \"name\": \"IndexRangeScan_171\",\n                                        \"labels\": [\n                                          \"buildSide\"\n                                        ],\n                                        \"cost\": 381504.7033137449,\n                                        \"estRows\": 264.3349541387617,\n                                        \"actRows\": \"190532\",\n                                        \"taskType\": \"cop\",\n                                        \"storeType\": \"tikv\",\n                                        \"accessObjects\": [\n                                          {\n                                            \"scanObject\": {\n                                              \"database\": \"doctor2\",\n                                              \"table\": \"si\",\n                                              \"indexes\": [\n                                                {\n                                                  \"name\": \"stock_items_stock_id_foreign\",\n                                                  \"cols\": [\n                                                    \"stock_id\"\n                                                  ]\n                                                }\n                                              ]\n                                            }\n                                          }\n                                        ],\n                                        \"operatorInfo\": \"range: decided by [eq(doctor2.stock_items.stock_id, doctor2.stocks.id)], keep order:false\",\n                                        \"rootBasicExecInfo\": \"time:1.78s, loops:192\",\n                                        \"rootGroupExecInfo\": [\n                                          \"cop_task: {num: 19, max: 286.9ms, min: 24.3ms, avg: 93.9ms, p95: 286.9ms, max_proc_keys: 50144, p95_proc_keys: 50144, tot_proc: 139.8ms, tot_wait: 799.8\\u00b5s, copr_cache: disabled, build_task_duration: 27\\u00b5s, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:19, total_time:1.78s}}\"\n                                        ],\n                                        \"copExecInfo\": \"tikv_task:{proc max:20ms, min:0s, avg: 6.84ms, p80:20ms, p95:20ms, iters:260, tasks:19}, scan_detail: {total_process_keys: 190532, total_process_keys_size: 8764472, total_keys: 190643, get_snapshot_time: 265.3\\u00b5s, rocksdb: {key_skipped_count: 190532, block: {cache_hit_count: 1122}}}, time_detail: {total_process_time: 139.8ms, total_suspend_time: 524.5\\u00b5s, total_wait_time: 799.8\\u00b5s, total_kv_read_wall_time: 130ms, tikv_wall_time: 143.5ms}\",\n                                        \"memoryBytes\": \"-1\",\n                                        \"diskBytes\": \"-1\"\n                                      },\n                                      {\n                                        \"name\": \"Selection_173\",\n                                        \"children\": [\n                                          {\n                                            \"name\": \"TableRowIDScan_172\",\n                                            \"cost\": 603307.861847623,\n                                            \"estRows\": 264.3349541387617,\n                                            \"actRows\": \"190532\",\n                                            \"taskType\": \"cop\",\n                                            \"storeType\": \"tikv\",\n                                            \"accessObjects\": [\n                                              {\n                                                \"scanObject\": {\n                                                  \"database\": \"doctor2\",\n                                                  \"table\": \"si\"\n                                                }\n                                              }\n                                            ],\n                                            \"operatorInfo\": \"keep order:false\",\n                                            \"copExecInfo\": \"tikv_task:{proc max:30ms, min:0s, avg: 14.7ms, p80:30ms, p95:30ms, iters:266, tasks:17}\",\n                                            \"memoryBytes\": \"-1\",\n                                            \"diskBytes\": \"-1\"\n                                          }\n                                        ],\n                                        \"labels\": [\n                                          \"probeSide\"\n                                        ],\n                                        \"cost\": 790404.517330236,\n                                        \"estRows\": 239.11268503937004,\n                                        \"actRows\": \"177577\",\n                                        \"taskType\": \"cop\",\n                                        \"storeType\": \"tikv\",\n                                        \"operatorInfo\": \"eq(doctor2.stock_items.internally_suspended, ?), eq(doctor2.stock_items.suspended, ?)\",\n                                        \"rootBasicExecInfo\": \"time:1.68s, loops:205\",\n                                        \"rootGroupExecInfo\": [\n                                          \"cop_task: {num: 17, max: 276.9ms, min: 21.7ms, avg: 91.4ms, p95: 276.9ms, max_proc_keys: 20480, p95_proc_keys: 20480, tot_proc: 320.8ms, tot_wait: 708.5\\u00b5s, copr_cache: disabled, build_task_duration: 732.6\\u00b5s, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:17, total_time:1.55s}}\"\n                                        ],\n                                        \"copExecInfo\": \"tikv_task:{proc max:40ms, min:0s, avg: 17.1ms, p80:30ms, p95:40ms, iters:266, tasks:17}, scan_detail: {total_process_keys: 190532, total_process_keys_size: 19409574, total_keys: 196652, get_snapshot_time: 218\\u00b5s, rocksdb: {delete_skipped_count: 16, key_skipped_count: 191580, block: {cache_hit_count: 41038}}}, time_detail: {total_process_time: 320.8ms, total_suspend_time: 5.08ms, total_wait_time: 708.5\\u00b5s, total_kv_read_wall_time: 250ms, tikv_wall_time: 331.9ms}\",\n                                        \"memoryBytes\": \"-1\",\n                                        \"diskBytes\": \"-1\"\n                                      }\n                                    ],\n                                    \"labels\": [\n                                      \"probeSide\"\n                                    ],\n                                    \"cost\": 3666200.5313641164,\n                                    \"estRows\": 239.11268503937004,\n                                    \"actRows\": \"177577\",\n                                    \"taskType\": \"root\",\n                                    \"storeType\": \"tidb\",\n                                    \"rootBasicExecInfo\": \"time:2.01s, loops:177\",\n                                    \"rootGroupExecInfo\": [\n                                      \"index_task: {total_time: 1.79s, fetch_handle: 1.79s, build: 42\\u00b5s, wait: 46.6\\u00b5s}, table_task: {total_time: 1.79s, num: 17, concurrency: 5}, next: {wait_index: 733.8ms, wait_table_lookup_build: 146ms, wait_table_lookup_resp: 1.1s}\"\n                                    ],\n                                    \"memoryBytes\": \"6286810\",\n                                    \"diskBytes\": \"-1\"\n                                  }\n                                ],\n                                \"labels\": [\n                                  \"buildSide\"\n                                ],\n                                \"cost\": 22685.623526114407,\n                                \"estRows\": 239.11268503937004,\n                                \"actRows\": \"177577\",\n                                \"taskType\": \"root\",\n                                \"storeType\": \"tidb\",\n                                \"operatorInfo\": \"inner join, inner:IndexLookUp_174, outer key:doctor2.stocks.id, inner key:doctor2.stock_items.stock_id, equal cond:eq(doctor2.stocks.id, doctor2.stock_items.stock_id)\",\n                                \"rootBasicExecInfo\": \"time:3.06s, loops:177\",\n                                \"rootGroupExecInfo\": [\n                                  \"inner:{total:3.92s, concurrency:5, task:2, construct:79.3\\u00b5s, fetch:2.01s, build:24.3\\u00b5s, join:1.91s}\"\n                                ],\n                                \"memoryBytes\": \"6869714\",\n                                \"diskBytes\": \"-1\"\n                              },\n                              {\n                                \"name\": \"IndexLookUp_134\",\n                                \"children\": [\n                                  {\n                                    \"name\": \"IndexRangeScan_131\",\n                                    \"labels\": [\n                                      \"buildSide\"\n                                    ],\n                                    \"cost\": 1087.793044192445,\n                                    \"estRows\": 1278.1578160393394,\n                                    \"actRows\": \"11229\",\n                                    \"taskType\": \"cop\",\n                                    \"storeType\": \"tikv\",\n                                    \"accessObjects\": [\n                                      {\n                                        \"scanObject\": {\n                                          \"database\": \"doctor2\",\n                                          \"table\": \"ssi\",\n                                          \"indexes\": [\n                                            {\n                                              \"name\": \"stock_supply_items_stock_item_id_foreign\",\n                                              \"cols\": [\n                                                \"stock_item_id\"\n                                              ]\n                                            }\n                                          ]\n                                        }\n                                      }\n                                    ],\n                                    \"operatorInfo\": \"range: decided by [eq(doctor2.stock_supply_items.stock_item_id, doctor2.stock_items.id)], keep order:false\",\n                                    \"rootBasicExecInfo\": \"time:9.14s, loops:50\",\n                                    \"rootGroupExecInfo\": [\n                                      \"cop_task: {num: 37, max: 777ms, min: 13.1ms, avg: 247ms, p95: 702.7ms, max_proc_keys: 1265, p95_proc_keys: 992, tot_proc: 3.69s, tot_wait: 12.7ms, copr_cache: disabled, build_task_duration: 5.65ms, max_distsql_concurrency: 2}, rpc_info:{Cop:{num_rpc:37, total_time:9.14s}}\"\n                                    ],\n                                    \"copExecInfo\": \"tikv_task:{proc max:550ms, min:0s, avg: 134.3ms, p80:260ms, p95:500ms, iters:114, tasks:37}, scan_detail: {total_process_keys: 11229, total_process_keys_size: 516534, total_keys: 188823, get_snapshot_time: 533.3\\u00b5s, rocksdb: {key_skipped_count: 11229, block: {cache_hit_count: 1065581}}}, time_detail: {total_process_time: 3.69s, total_suspend_time: 1.25s, total_wait_time: 12.7ms, total_kv_read_wall_time: 4.97s, tikv_wall_time: 5.18s}\",\n                                    \"memoryBytes\": \"-1\",\n                                    \"diskBytes\": \"-1\"\n                                  },\n                                  {\n                                    \"name\": \"Selection_133\",\n                                    \"children\": [\n                                      {\n                                        \"name\": \"TableRowIDScan_132\",\n                                        \"cost\": 1785.2611103140534,\n                                        \"estRows\": 1278.1578160393394,\n                                        \"actRows\": \"11229\",\n                                        \"taskType\": \"cop\",\n                                        \"storeType\": \"tikv\",\n                                        \"accessObjects\": [\n                                          {\n                                            \"scanObject\": {\n                                              \"database\": \"doctor2\",\n                                              \"table\": \"ssi\"\n                                            }\n                                          }\n                                        ],\n                                        \"operatorInfo\": \"keep order:false\",\n                                        \"copExecInfo\": \"tikv_task:{proc max:170ms, min:0s, avg: 37.4ms, p80:80ms, p95:170ms, iters:77, tasks:19}\",\n                                        \"memoryBytes\": \"-1\",\n                                        \"diskBytes\": \"-1\"\n                                      }\n                                    ],\n                                    \"labels\": [\n                                      \"probeSide\"\n                                    ],\n                                    \"cost\": 2051.997586506697,\n                                    \"estRows\": 462.1224959175679,\n                                    \"actRows\": \"8063\",\n                                    \"taskType\": \"cop\",\n                                    \"storeType\": \"tikv\",\n                                    \"operatorInfo\": \"gt(doctor2.stock_supply_items.for_sale, ?)\",\n                                    \"rootBasicExecInfo\": \"time:2.82s, loops:38\",\n                                    \"rootGroupExecInfo\": [\n                                      \"cop_task: {num: 19, max: 356.4ms, min: 6.37ms, avg: 138.9ms, p95: 356.4ms, max_proc_keys: 1937, p95_proc_keys: 1937, tot_proc: 112.3ms, tot_wait: 9.83ms, copr_cache: disabled, build_task_duration: 789.8\\u00b5s, max_distsql_concurrency: 1, max_extra_concurrency: 1}, rpc_info:{Cop:{num_rpc:19, total_time:2.64s}}\"\n                                    ],\n                                    \"copExecInfo\": \"tikv_task:{proc max:170ms, min:0s, avg: 37.9ms, p80:80ms, p95:170ms, iters:77, tasks:19}, scan_detail: {total_process_keys: 11229, total_process_keys_size: 1910567, total_keys: 18774, get_snapshot_time: 252.3\\u00b5s, rocksdb: {delete_skipped_count: 88, key_skipped_count: 14238, block: {cache_hit_count: 21499}}}, time_detail: {total_process_time: 112.3ms, total_suspend_time: 621.2ms, total_wait_time: 9.83ms, total_kv_read_wall_time: 710ms, tikv_wall_time: 749ms}\",\n                                    \"memoryBytes\": \"-1\",\n                                    \"diskBytes\": \"-1\"\n                                  }\n                                ],\n                                \"labels\": [\n                                  \"probeSide\"\n                                ],\n                                \"cost\": 10491.794319849312,\n                                \"estRows\": 462.1224959175679,\n                                \"actRows\": \"8063\",\n                                \"taskType\": \"root\",\n                                \"storeType\": \"tidb\",\n                                \"rootBasicExecInfo\": \"time:11.5s, loops:33\",\n                                \"rootGroupExecInfo\": [\n                                  \"index_task: {total_time: 9.14s, fetch_handle: 9.14s, build: 37.9\\u00b5s, wait: 55.6\\u00b5s}, table_task: {total_time: 2.83s, num: 19, concurrency: 5}, next: {wait_index: 8.85s, wait_table_lookup_build: 10.1ms, wait_table_lookup_resp: 2.6s}\"\n                                ],\n                                \"memoryBytes\": \"76667\",\n                                \"diskBytes\": \"-1\"\n                              }\n                            ],\n                            \"labels\": [\n                              \"buildSide\"\n                            ],\n                            \"cost\": 229663.26709921082,\n                            \"estRows\": 462.1224959175679,\n                            \"actRows\": \"8063\",\n                            \"taskType\": \"root\",\n                            \"storeType\": \"tidb\",\n                            \"operatorInfo\": \"inner join, inner:IndexLookUp_134, outer key:doctor2.stock_items.id, inner key:doctor2.stock_supply_items.stock_item_id, equal cond:eq(doctor2.stock_items.id, doctor2.stock_supply_items.stock_item_id)\",\n                            \"rootBasicExecInfo\": \"time:5s, loops:12\",\n                            \"rootGroupExecInfo\": [\n                              \"inner:{total:16.7s, concurrency:5, task:15, construct:2.67s, fetch:13.1s, build:972.1ms, join:70.9ms}\"\n                            ],\n                            \"memoryBytes\": \"28800864\",\n                            \"diskBytes\": \"-1\"\n                          },\n                          {\n                            \"name\": \"IndexLookUp_76\",\n                            \"children\": [\n                              {\n                                \"name\": \"IndexRangeScan_74\",\n                                \"labels\": [\n                                  \"buildSide\"\n                                ],\n                                \"cost\": 240.23739357706276,\n                                \"estRows\": 545.5484222730385,\n                                \"actRows\": \"12965\",\n                                \"taskType\": \"cop\",\n                                \"storeType\": \"tikv\",\n                                \"accessObjects\": [\n                                  {\n                                    \"scanObject\": {\n                                      \"database\": \"doctor2\",\n                                      \"table\": \"ci\",\n                                      \"indexes\": [\n                                        {\n                                          \"name\": \"catalogs_items_product_item_id_foreign\",\n                                          \"cols\": [\n                                            \"product_item_id\"\n                                          ]\n                                        }\n                                      ]\n                                    }\n                                  }\n                                ],\n                                \"operatorInfo\": \"range: decided by [eq(doctor2.catalogs_items.product_item_id, doctor2.stock_items.product_item_id)], keep order:false\",\n                                \"rootBasicExecInfo\": \"time:3.03s, loops:30\",\n                                \"rootGroupExecInfo\": [\n                                  \"cop_task: {num: 25, max: 373.4ms, min: 7.22ms, avg: 118.8ms, p95: 371.2ms, max_proc_keys: 2016, p95_proc_keys: 992, tot_proc: 174.2ms, tot_wait: 14.6ms, copr_cache: disabled, build_task_duration: 330.7\\u00b5s, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:25, total_time:2.97s}}\"\n                                ],\n                                \"copExecInfo\": \"tikv_task:{proc max:40ms, min:0s, avg: 12.4ms, p80:20ms, p95:30ms, iters:97, tasks:25}, scan_detail: {total_process_keys: 12965, total_process_keys_size: 596390, total_keys: 19831, get_snapshot_time: 360.1\\u00b5s, rocksdb: {key_skipped_count: 12967, block: {cache_hit_count: 54925}}}, time_detail: {total_process_time: 174.2ms, total_suspend_time: 139.2ms, total_wait_time: 14.6ms, total_kv_read_wall_time: 310ms, tikv_wall_time: 349.9ms}\",\n                                \"memoryBytes\": \"-1\",\n                                \"diskBytes\": \"-1\"\n                              },\n                              {\n                                \"name\": \"TableRowIDScan_75\",\n                                \"labels\": [\n                                  \"probeSide\"\n                                ],\n                                \"cost\": 336.33235100788784,\n                                \"estRows\": 545.5484222730385,\n                                \"actRows\": \"12965\",\n                                \"taskType\": \"cop\",\n                                \"storeType\": \"tikv\",\n                                \"accessObjects\": [\n                                  {\n                                    \"scanObject\": {\n                                      \"database\": \"doctor2\",\n                                      \"table\": \"ci\"\n                                    }\n                                  }\n                                ],\n                                \"operatorInfo\": \"keep order:false\",\n                                \"rootBasicExecInfo\": \"time:783.1ms, loops:29\",\n                                \"rootGroupExecInfo\": [\n                                  \"cop_task: {num: 13, max: 266ms, min: 11.2ms, avg: 58.4ms, p95: 266ms, max_proc_keys: 2688, p95_proc_keys: 2688, tot_proc: 108.7ms, tot_wait: 2.15ms, copr_cache: disabled, build_task_duration: 738.4\\u00b5s, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:13, total_time:758.6ms}}\"\n                                ],\n                                \"copExecInfo\": \"tikv_task:{proc max:70ms, min:0s, avg: 17.7ms, p80:30ms, p95:70ms, iters:72, tasks:13}, scan_detail: {total_process_keys: 12965, total_process_keys_size: 997539, total_keys: 14810, get_snapshot_time: 147.7\\u00b5s, rocksdb: {key_skipped_count: 8167, block: {cache_hit_count: 39639}}}, time_detail: {total_process_time: 108.7ms, total_suspend_time: 135.6ms, total_wait_time: 2.15ms, total_kv_read_wall_time: 230ms, tikv_wall_time: 251.7ms}\",\n                                \"memoryBytes\": \"-1\",\n                                \"diskBytes\": \"-1\"\n                              }\n                            ],\n                            \"labels\": [\n                              \"probeSide\"\n                            ],\n                            \"cost\": 2304.9725276490963,\n                            \"estRows\": 545.5484222730385,\n                            \"actRows\": \"12965\",\n                            \"taskType\": \"root\",\n                            \"storeType\": \"tidb\",\n                            \"rootBasicExecInfo\": \"time:3.62s, loops:23\",\n                            \"rootGroupExecInfo\": [\n                              \"index_task: {total_time: 3.03s, fetch_handle: 3.03s, build: 29.5\\u00b5s, wait: 33.8\\u00b5s}, table_task: {total_time: 790.7ms, num: 13, concurrency: 5}, next: {wait_index: 2.9s, wait_table_lookup_build: 11.1ms, wait_table_lookup_resp: 707.3ms}\"\n                            ],\n                            \"memoryBytes\": \"297194\",\n                            \"diskBytes\": \"-1\"\n                          }\n                        ],\n                        \"labels\": [\n                          \"probeSide\"\n                        ],\n                        \"cost\": 503408.2563801591,\n                        \"estRows\": 545.5484222730385,\n                        \"actRows\": \"14724\",\n                        \"taskType\": \"root\",\n                        \"storeType\": \"tidb\",\n                        \"operatorInfo\": \"inner join, inner:IndexLookUp_76, outer key:doctor2.stock_items.product_item_id, inner key:doctor2.catalogs_items.product_item_id, equal cond:eq(doctor2.stock_items.product_item_id, doctor2.catalogs_items.product_item_id)\",\n                        \"rootBasicExecInfo\": \"time:5.56s, loops:16\",\n                        \"rootGroupExecInfo\": [\n                          \"inner:{total:3.64s, concurrency:5, task:7, construct:8.97ms, fetch:3.63s, build:4.23ms}, probe:14.7ms\"\n                        ],\n                        \"memoryBytes\": \"2520129\",\n                        \"diskBytes\": \"-1\"\n                      },\n                      {\n                        \"name\": \"IndexReader_240\",\n                        \"children\": [\n                          {\n                            \"name\": \"IndexRangeScan_239\",\n                            \"cost\": 7119.966910857546,\n                            \"estRows\": 35.0,\n                            \"actRows\": \"35\",\n                            \"taskType\": \"cop\",\n                            \"storeType\": \"tikv\",\n                            \"accessObjects\": [\n                              {\n                                \"scanObject\": {\n                                  \"database\": \"doctor2\",\n                                  \"table\": \"product_catalog\",\n                                  \"indexes\": [\n                                    {\n                                      \"name\": \"catalogs_parent_id_index\",\n                                      \"cols\": [\n                                        \"parent_id\"\n                                      ]\n                                    }\n                                  ]\n                                }\n                              }\n                            ],\n                            \"operatorInfo\": \"range:[?,?], keep order:false\",\n                            \"copExecInfo\": \"tikv_task:{time:0s, loops:2}, scan_detail: {total_process_keys: 35, total_process_keys_size: 1610, total_keys: 36, get_snapshot_time: 8.3\\u00b5s, rocksdb: {key_skipped_count: 35, block: {cache_hit_count: 8}}}, time_detail: {total_process_time: 74.5\\u00b5s, total_wait_time: 23.1\\u00b5s, tikv_wall_time: 163.5\\u00b5s}\",\n                            \"memoryBytes\": \"-1\",\n                            \"diskBytes\": \"-1\"\n                          }\n                        ],\n                        \"labels\": [\n                          \"buildSide\"\n                        ],\n                        \"cost\": 769.9802373545263,\n                        \"estRows\": 35.0,\n                        \"actRows\": \"35\",\n                        \"taskType\": \"root\",\n                        \"storeType\": \"tidb\",\n                        \"operatorInfo\": \"index:IndexRangeScan_239\",\n                        \"rootBasicExecInfo\": \"time:41.2ms, loops:2\",\n                        \"rootGroupExecInfo\": [\n                          \"cop_task: {num: 1, max: 44ms, proc_keys: 35, tot_proc: 74.5\\u00b5s, tot_wait: 23.1\\u00b5s, copr_cache: disabled, build_task_duration: 9.02\\u00b5s, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:1, total_time:44ms}}\"\n                        ],\n                        \"memoryBytes\": \"844\",\n                        \"diskBytes\": \"-1\"\n                      }\n                    ],\n                    \"labels\": [\n                      \"probeSide\"\n                    ],\n                    \"cost\": 520281.10719928856,\n                    \"estRows\": 35.0,\n                    \"actRows\": \"541\",\n                    \"taskType\": \"root\",\n                    \"storeType\": \"tidb\",\n                    \"operatorInfo\": \"inner join, equal:[eq(doctor2.catalogs_items.catalog_id, doctor2.catalogs.id)]\",\n                    \"rootBasicExecInfo\": \"time:5.57s, loops:6\",\n                    \"rootGroupExecInfo\": [\n                      \"build_hash_table:{total:41.3ms, fetch:41.3ms, build:21.9\\u00b5s}, probe:{concurrency:5, total:27.8s, max:5.57s, probe:2.83ms, fetch and wait:27.8s}\"\n                    ],\n                    \"memoryBytes\": \"18132\"\n                  },\n                  {\n                    \"name\": \"Point_Get_241\",\n                    \"labels\": [\n                      \"buildSide\"\n                    ],\n                    \"cost\": 63.36,\n                    \"estRows\": 1.0,\n                    \"actRows\": \"1\",\n                    \"taskType\": \"root\",\n                    \"storeType\": \"tidb\",\n                    \"accessObjects\": [\n                      {\n                        \"scanObject\": {\n                          \"database\": \"doctor2\",\n                          \"table\": \"catalogs\"\n                        }\n                      }\n                    ],\n                    \"operatorInfo\": \"handle:?\",\n                    \"rootBasicExecInfo\": \"time:34.5ms, loops:2\",\n                    \"rootGroupExecInfo\": [\n                      \"Get:{num_rpc:1, total_time:34.4ms}, time_detail: {total_process_time: 61.6\\u00b5s, total_wait_time: 22.5\\u00b5s, total_kv_read_wall_time: 87.9\\u00b5s, tikv_wall_time: 163\\u00b5s}, scan_detail: {total_process_keys: 1, total_process_keys_size: 804, total_keys: 1, get_snapshot_time: 10.3\\u00b5s, rocksdb: {block: {cache_hit_count: 9}}}\"\n                    ],\n                    \"memoryBytes\": \"-1\",\n                    \"diskBytes\": \"-1\"\n                  }\n                ],\n                \"cost\": 522243.8671992885,\n                \"estRows\": 35.0,\n                \"actRows\": \"541\",\n                \"taskType\": \"root\",\n                \"storeType\": \"tidb\",\n                \"operatorInfo\": \"CARTESIAN inner join\",\n                \"rootBasicExecInfo\": \"time:5.57s, loops:6\",\n                \"rootGroupExecInfo\": [\n                  \"build_hash_table:{total:34.5ms, fetch:34.5ms, build:7.55\\u00b5s}, probe:{concurrency:5, total:27.8s, max:5.57s, probe:485.5\\u00b5s, fetch and wait:27.8s}\"\n                ],\n                \"memoryBytes\": \"9692\"\n              }\n            ],\n            \"cost\": 522666.5201992885,\n            \"estRows\": 35.0,\n            \"actRows\": \"541\",\n            \"taskType\": \"root\",\n            \"storeType\": \"tidb\",\n            \"operatorInfo\": \"cast(doctor2.stock_supply_items.for_sale, decimal(10,0) BINARY)->Column#241, doctor2.stock_supply_items.id->Column#242, doctor2.stock_supply_items.stock_id->Column#243, doctor2.stock_supply_items.stock_supply_id->Column#244, doctor2.stock_supply_items.stock_item_id->Column#245, doctor2.stock_supply_items.stock_order_item_id->Column#246, doctor2.stock_supply_items.quantity->Column#247, doctor2.stock_supply_items.in_stock->Column#248, doctor2.stock_supply_items.for_sale->Column#249, doctor2.stock_supply_items.is_unlimited->Column#250, doctor2.stock_supply_items.use_cannabis_dispensing_fee->Column#251, doctor2.stock_supply_items.brand->Column#252, doctor2.stock_supply_items.sku->Column#253, doctor2.stock_supply_items.supply_price->Column#254, doctor2.stock_supply_items.supply_price_base->Column#255, doctor2.stock_supply_items.additional_cost->Column#256, doctor2.stock_supply_items.prepaid_supply_price->Column#257, doctor2.stock_supply_items.use_prepaid_supply_price->Column#258, doctor2.stock_supply_items.created_at->Column#259, doctor2.stock_supply_items.updated_at->Column#260, doctor2.stock_supply_items.deleted_at->Column#261, doctor2.stock_supply_items.id->Column#262\",\n            \"rootBasicExecInfo\": \"time:5.57s, loops:6\",\n            \"rootGroupExecInfo\": [\n              \"Concurrency:OFF\"\n            ],\n            \"memoryBytes\": \"185184\",\n            \"diskBytes\": \"-1\"\n          }\n        ],\n        \"cost\": 533204.7201992885,\n        \"estRows\": 35.0,\n        \"actRows\": \"525\",\n        \"taskType\": \"root\",\n        \"storeType\": \"tidb\",\n        \"operatorInfo\": \"group by:Column#262, funcs:sum(Column#241)->Column#233, funcs:firstrow(Column#242)->doctor2.stock_supply_items.id, funcs:firstrow(Column#243)->doctor2.stock_supply_items.stock_id, funcs:firstrow(Column#244)->doctor2.stock_supply_items.stock_supply_id, funcs:firstrow(Column#245)->doctor2.stock_supply_items.stock_item_id, funcs:firstrow(Column#246)->doctor2.stock_supply_items.stock_order_item_id, funcs:firstrow(Column#247)->doctor2.stock_supply_items.quantity, funcs:firstrow(Column#248)->doctor2.stock_supply_items.in_stock, funcs:firstrow(Column#249)->doctor2.stock_supply_items.for_sale, funcs:firstrow(Column#250)->doctor2.stock_supply_items.is_unlimited, funcs:firstrow(Column#251)->doctor2.stock_supply_items.use_cannabis_dispensing_fee, funcs:firstrow(Column#252)->doctor2.stock_supply_items.brand, funcs:firstrow(Column#253)->doctor2.stock_supply_items.sku, funcs:firstrow(Column#254)->doctor2.stock_supply_items.supply_price, funcs:firstrow(Column#255)->doctor2.stock_supply_items.supply_price_base, funcs:firstrow(Column#256)->doctor2.stock_supply_items.additional_cost, funcs:firstrow(Column#257)->doctor2.stock_supply_items.prepaid_supply_price, funcs:firstrow(Column#258)->doctor2.stock_supply_items.use_prepaid_supply_price, funcs:firstrow(Column#259)->doctor2.stock_supply_items.created_at, funcs:firstrow(Column#260)->doctor2.stock_supply_items.updated_at, funcs:firstrow(Column#261)->doctor2.stock_supply_items.deleted_at\",\n        \"rootBasicExecInfo\": \"time:5.57s, loops:6\",\n        \"rootGroupExecInfo\": [\n          \"partial_worker:{wall_time:5.572795386s, concurrency:5, task_num:5, tot_wait:27.849390868s, tot_exec:1.511744ms, tot_time:27.850924543s, max:5.570186006s, p95:5.570186006s}, final_worker:{wall_time:0s, concurrency:5, task_num:25, tot_wait:17.044\\u00b5s, tot_exec:156.596\\u00b5s, tot_time:27.857083516s, max:5.572411451s, p95:5.572411451s}\"\n        ],\n        \"memoryBytes\": \"1335880\",\n        \"diskBytes\": \"-1\"\n      }\n    ],\n    \"cost\": 533278.0731992885,\n    \"estRows\": 35.0,\n    \"actRows\": \"525\",\n    \"taskType\": \"root\",\n    \"storeType\": \"tidb\",\n    \"operatorInfo\": \"doctor2.stock_supply_items.id, doctor2.stock_supply_items.stock_id, doctor2.stock_supply_items.stock_supply_id, doctor2.stock_supply_items.stock_item_id, doctor2.stock_supply_items.stock_order_item_id, doctor2.stock_supply_items.quantity, doctor2.stock_supply_items.in_stock, doctor2.stock_supply_items.for_sale, doctor2.stock_supply_items.is_unlimited, doctor2.stock_supply_items.use_cannabis_dispensing_fee, doctor2.stock_supply_items.brand, doctor2.stock_supply_items.sku, doctor2.stock_supply_items.supply_price, doctor2.stock_supply_items.supply_price_base, doctor2.stock_supply_items.additional_cost, doctor2.stock_supply_items.prepaid_supply_price, doctor2.stock_supply_items.use_prepaid_supply_price, doctor2.stock_supply_items.created_at, doctor2.stock_supply_items.updated_at, doctor2.stock_supply_items.deleted_at, Column#233\",\n    \"rootBasicExecInfo\": \"time:5.57s, loops:6\",\n    \"rootGroupExecInfo\": [\n      \"Concurrency:OFF\"\n    ],\n    \"memoryBytes\": \"197688\",\n    \"diskBytes\": \"-1\"\n  },\n  \"withRuntimeStats\": true\n}",
    "stats_info": "catalogs:465450270436884538[8524;3638],catalogs_items:465451371651399716[75431;172],stock_items:465451371848269839[216090;34486],stock_supply_items:465451567499444232[44690;5140],stocks:465450835986612259[141;632231][][id:unInitialized,enabled:unInitialized]",
    "backoff": "",
    "indexes_used": "[catalogs:catalogs_parent_id_index]",
    "query_time": "6.047147567",
    "process_time": "5.505979156",
    "wait_time": "0.2698286",
    "total_keys": "633082",
    "process_keys": "433024"
  }
}