tune tidb_enable_paging
or tidb_min_paging_size
to make TTL scan more efficient
#58342
Labels
tidb_enable_paging
or tidb_min_paging_size
to make TTL scan more efficient
#58342
Enhancement
With paging:
Without paging:
You can see that with
@@tidb_enable_paging='ON'
, it schedules 3 cop tasks with scanning 13216 rows. But for@@tidb_enable_paging='OFF'
, it scan much less rows. That is because paging will separate the requests in a same regions to multiple coptasks according to@@tidb_min_paging_size
andtidb_max_paging_size
, for the last cop task, it'sLimit
is still 500 and may consume more rows even it is not necessary.The text was updated successfully, but these errors were encountered: