Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analyze table before cutover #1419

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangzihuacool
Copy link
Contributor

Related issue: #1418

Description:
analyze ghost table before cutover to avoid table statistics not timely updated.

@meiji163
Copy link
Contributor

LGTM

@shaohk
Copy link
Contributor

shaohk commented May 30, 2024

When the modified table is a partition table, the execution time of the ANALYZE command will increase as the number of partitions increases. When the ANALYZE statement is synchronized to the replica, it may cause replication lag.

@meiji163
Copy link
Contributor

When the ANALYZE statement is synchronized to the replica, it may cause replication lag.

Maybe make this feature a optional flag then? What do you think @timvaillancourt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants