【 TiDB 使用环境】Poc
【 TiDB 版本】V8.1
【复现路径】对应的表加过ttl
【遇到的问题:问题现象及影响】
sql select * from table_name limit 1
执行计划
| id | estRows | estCost | actRows | task | access object | execution info | operator info | memory | disk |
| Limit_7 | 1.00 | 67.35 | 0 | root | | time:29.4s, loops:1 | offset:0, count:1 | N/A | N/A |
| └─TableReader_11 | 1.00 | 67.35 | 0 | root | | time:29.4s, loops:1, cop_task: {num: 794, max: 472.2ms, min: 485.7µs, avg: 36.8ms, p95: 231.7ms, tot_proc: 28.5s, tot_wait: 251.7ms, copr_cache_hit_ratio: 0.78, build_task_duration: 705.1ms, max_distsql_concurrency: 1}, rpc_info:{Cop:{num_rpc:794, total_time:29.2s}} | data:Limit_10 | 339 Bytes | N/A |
| └─Limit_10 | 1.00 | 305.49 | 0 | cop[tikv] | | tikv_task:{proc max:471ms, min:0s, avg: 114ms, p80:147ms, p95:260ms, iters:794, tasks:794}, scan_detail: {total_keys: 86977944, get_snapshot_time: 230.8ms, rocksdb: {delete_skipped_count: 6326304, key_skipped_count: 93304074, block: {cache_hit_count: 2379, read_count: 150700, read_byte: 1.03 GB, read_time: 4.27s}}}, time_detail: {total_process_time: 28.5s, total_wait_time: 251.7ms, total_kv_read_wall_time: 28.4s, tikv_wall_time: 28.9s} | offset:0, count:1 | N/A | N/A |
| └─TableFullScan_9 | 1.00 | 305.49 | 0 | cop[tikv] | table:data_event_relation | tikv_task:{proc max:471ms, min:0s, avg: 114ms, p80:147ms, p95:260ms, iters:794, tasks:794} | keep order:false | N/A | N/A |
【资源配置】
内存cpu充足