collect table statistics when importing data by Lightning #40469
Labels
component/lightning
This issue is related to Lightning of TiDB.
component/statistics
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
Currently, after we import data to the cluster, we need to analyze the table, which is time-consuming since it needs to scan the whole table. Collecting table statistics can be done when iterating all the data. There are several steps in Lightning that iterate all the data, such as scanning CSV files, passing KV values streamingly from Lightning to TiKV, and checksum. Hence collecting table statistics can be done in any of those steps to avoid another table full scan.
The text was updated successfully, but these errors were encountered: