如下sql:
SELECT
data
FROM
pay_iap_receipt_detail
WHERE
createTime < '2022-03-30 14:52:52.986'
AND preOrderFlag IS false
AND exchangeFlag IS false
LIMIT
200;
id task estRows operator info actRows execution info memory disk
Limit_9 root 200 offset:0, count:200 200 time:1.16s, loops:2 N/A N/A
└─IndexLookUp_18 root 200 200 time:1.16s, loops:1, index_task: {total_time: 1.16s, fetch_handle: 396.9ms, build: 15.2µs, wait: 765.3ms}, table_task: {total_time: 34.6s, num: 9, concurrency: 5} 6.34 GB N/A
├─IndexRangeScan_14 cop[tikv] 200 table:pay_iap_receipt_detail, index:idx_create_time(createTime), range:[-inf,2022-03-30 14:52:53), keep order:false 502919 time:390.3ms, loops:90, cop_task: {num: 1, max: 389.8ms, proc_keys: 502919, tot_proc: 367ms, tot_wait: 1ms, rpc_num: 1, rpc_time: 389.8ms, copr_cache: disabled}, tikv_task:{time:354ms, loops:496}, scan_detail: {total_process_keys: 502919, total_process_keys_size: 23134274, total_keys: 502920, rocksdb: {delete_skipped_count: 0, key_skipped_count: 502919, block: {cache_hit_count: 399, read_count: 0, read_byte: 0 Bytes}}} N/A N/A
└─Limit_17 cop[tikv] 200 offset:0, count:200 55770 time:34.5s, loops:67, cop_task: {num: 679, max: 1.13s, min: 2.08ms, avg: 266.1ms, p95: 767.6ms, max_proc_keys: 224, p95_proc_keys: 224, tot_proc: 31s, tot_wait: 377ms, rpc_num: 679, rpc_time: 3m0.4s, copr_cache: disabled}, tikv_task:{proc max:96ms, min:0s, p80:34ms, p95:53ms, iters:1331, tasks:679}, scan_detail: {total_process_keys: 58507, total_process_keys_size: 6360462489, total_keys: 60278, rocksdb: {delete_skipped_count: 583, key_skipped_count: 5409, block: {cache_hit_count: 439837, read_count: 309, read_byte: 3.82 MB}}} N/A N/A
└─Selection_16 cop[tikv] 200 isfalse(u7pay.pay_iap_receipt_detail.exchangeflag), isfalse(u7pay.pay_iap_receipt_detail.preorderflag) 58497 tikv_task:{proc max:96ms, min:0s, p80:34ms, p95:53ms, iters:1331, tasks:679} N/A N/A
└─TableRowIDScan_15 cop[tikv] 200 table:pay_iap_receipt_detail, keep order:false 58507 tikv_task:{proc max:95ms, min:0s, p80:34ms, p95:53ms, iters:1331, tasks:679} N/A N/A
看上面执行计划tikv是返回55770 rows给tidb-server,limit没被下推么?还是其它什么问题造成的?