-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
ddl, planner: introduce a DDL notifier to allow the statistics module to subscribe DDL events #55722
Open
1 task done
Labels
component/ddl
This issue is related to DDL of TiDB.
type/enhancement
The issue or PR belongs to an enhancement.
Comments
fzzf678
added
type/enhancement
The issue or PR belongs to an enhancement.
component/ddl
This issue is related to DDL of TiDB.
labels
Aug 28, 2024
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
12 tasks
13 tasks
12 tasks
12 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/ddl
This issue is related to DDL of TiDB.
type/enhancement
The issue or PR belongs to an enhancement.
Background
In statistic module, we need all table information to rebuild the priority queue to do auto analyze every time, but in information schema v2, TiDB no longer stores all table information in memory(load as required), so we need a method to avoid traverse all tables as soon as possible, so we can try to keep the priority queue in memory to solve this problem.
In order to cooperate with the new priority queue we need a method to notify the statistics module handle DDL events.
Development tasks
SchemaChangeEvent
to replace the oldDDLEvent
, use getters and setters to avoid direct access to the struct's fields.DDLEvent
#55723Add ddl notifier table and support ddl changes writing (write).
Implementation of the ddl notifier struct with subscription support (read).
The text was updated successfully, but these errors were encountered: