Aric:
计划可以 copy 上来了?方
id task estRows operator info actRows execution info memory disk
StreamAgg_15 root 1 funcs:count(1)->Column#52 1 time:24.3s, loops:2 8 Bytes N/A
└─IndexJoin_61 root 1.77 inner join, inner:TableReader_57, outer key:lenovo_sc_db_org.tbl_auth_roleuser.roleid, inner key:lenovo_sc_db_org.tbl_auth_role.id, equal cond:eq(lenovo_sc_db_org.tbl_auth_roleuser.roleid, lenovo_sc_db_org.tbl_auth_role.id) 0 time:24.3s, loops:1, inner:{total:1.51ms, concurrency:5, task:1, construct:18.7µs, fetch:1.49ms, build:87ns}, probe:4.31µs 750 Bytes N/A
├─IndexHashJoin_35 root 1.77 inner join, inner:IndexLookUp_32, outer key:lenovo_sc_db_org.tbl_auth_user.userid, inner key:lenovo_sc_db_org.tbl_auth_roleuser.userid, equal cond:eq(lenovo_sc_db_org.tbl_auth_user.userid, lenovo_sc_db_org.tbl_auth_roleuser.userid) 11 time:24.3s, loops:3, inner:{total:24.3s, concurrency:5, task:1, construct:14.7µs, fetch:24.3s, build:3.17µs, join:13.2µs} 49.3 KB N/A
│ ├─Point_Get_45 root 1 table:tbl_auth_user, index:unique_userCode(userCode) 1 time:16.9ms, loops:3, Get:{num_rpc:2, total_time:16.8ms}, scan_detail: {total_process_keys: 2, total_keys: 2, rocksdb: {delete_skipped_count: 0, key_skipped_count: 0, block: {cache_hit_count: 10, read_count: 0, read_byte: 0 Bytes}}} N/A N/A
│ └─IndexLookUp_32 root 1.77 11 time:24.3s, loops:2, index_task: {total_time: 15.9s, fetch_handle: 15.9s, build: 5.73µs, wait: 2.1µs}, table_task: {total_time: 1m28s, num: 1, concurrency: 5} 9.26 KB N/A
│ ├─IndexRangeScan_29 cop[tikv] 3.37 table:t0, index:index_userID_roleId(userId, roleId), range: decided by [eq(lenovo_sc_db_org.tbl_auth_roleuser.userid, lenovo_sc_db_org.tbl_auth_user.userid)], keep order:false 11 time:15.9s, loops:3, cop_task: {num: 1, max: 15.9s, proc_keys: 11, rpc_num: 1, rpc_time: 15.9s, copr_cache_hit_ratio: 0.00}, tikv_task:{time:0s, loops:1}, scan_detail: {total_process_keys: 11, total_keys: 12, rocksdb: {delete_skipped_count: 0, key_skipped_count: 11, block: {cache_hit_count: 6, read_count: 0, read_byte: 0 Bytes}}} N/A N/A
│ └─Selection_31 cop[tikv] 1.77 eq(1, lenovo_sc_db_org.tbl_auth_roleuser.roleuserstatus) 11 time:8.31s, loops:2, cop_task: {num: 1, max: 8.31s, proc_keys: 11, rpc_num: 1, rpc_time: 8.31s, copr_cache_hit_ratio: 0.00}, tikv_task:{time:0s, loops:1}, scan_detail: {total_process_keys: 11, total_keys: 12, rocksdb: {delete_skipped_count: 0, key_skipped_count: 3, block: {cache_hit_count: 45, read_count: 0, read_byte: 0 Bytes}}} N/A N/A
│ └─TableRowIDScan_30 cop[tikv] 3.37 table:t0, keep order:false 11 tikv_task:{time:0s, loops:1} N/A N/A
└─TableReader_57 root 0.01 data:Selection_56 0 time:1.42ms, loops:1, cop_task: {num: 1, max: 1.29ms, proc_keys: 11, tot_proc: 1ms, rpc_num: 1, rpc_time: 1.27ms, copr_cache_hit_ratio: 0.00} N/A N/A
└─Selection_56 cop[tikv] 0.01 eq(lenovo_sc_db_org.tbl_auth_role.roletype, 1), eq(lenovo_sc_db_org.tbl_auth_role.status, 1) 0 tikv_task:{time:1ms, loops:1}, scan_detail: {total_process_keys: 11, total_keys: 12, rocksdb: {delete_skipped_count: 0, key_skipped_count: 2, block: {cache_hit_count: 39, read_count: 0, read_byte: 0 Bytes}}} N/A N/A
└─TableRangeScan_55 cop[tikv] 1 table:t1, range: decided by [lenovo_sc_db_org.tbl_auth_roleuser.roleid], keep order:false 11 tikv_task:{time:1ms, loops:1} N/A N/A
非常简单一个sql 数据量也不大,走了索引 我根本无法复现出 20多S的情况