Skip to content

tidb: set global tidb_analyze_column_options to 'all' in load script - #6

Open
gengliqi wants to merge 1 commit into
toddstoffel:mainfrom
gengliqi:change-analyze-variables
Open

tidb: set global tidb_analyze_column_options to 'all' in load script#6
gengliqi wants to merge 1 commit into
toddstoffel:mainfrom
gengliqi:change-analyze-variables

Conversation

@gengliqi

@gengliqi gengliqi commented Nov 6, 2025

Copy link
Copy Markdown

Set analyze options for better statistics collection for OLAP workloads.
Ref: #4 (comment)

Note that after data is imported via TiDB Lightning, an ANALYZE TABLE operation will be triggered. Previously, the default tidb_analyze_column_options was PREDICATE, so it ran very quickly. With this change to ALL, it will take longer to complete. Therefore, this modification will not only improve query performance but also increase the total data load time.

Signed-off-by: gengliqi <gengliqiii@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant