-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
base: master
Are you sure you want to change the base?
Conversation
LGTM |
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. |
Maybe make this feature a optional flag then? What do you think @timvaillancourt ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@meiji163 considering this (I didn't think of it) I suggest this is an optional flag for now and we can have opt-in users report on performance @wangzihuacool can you add an optional flag and |
Related issue: #1418
Description:
analyze ghost table before cutover to avoid table statistics not timely updated.