optimize execution of general DDL
D3Hunter opened this issue · comments
D3Hunter commented
Enhancement
we have optimize create table
using fast-create, but there are scenarios that we might create a lot of database, or run many DDLs like add/modify column in the maintenance window.
so we want to optimize execution of general DDL, and in a unified way
- #53217
- add index on
type
fortidb_ddl_job
to make some query faster - run lifecycle of a job in the worker, so we don't need to query them multiple times
- move job dependency calculation into memory, to avoid the slower SQL
- run general DDLs with multiple workers
- notify the session which is not on DDL owner node when owner finished handling by RPC or other way