Feature request: schemadiff to be aware and knowledgeable about INSTANT
-capable changes
#14877
Labels
Component: Online DDL
Online DDL (vitess/native/gh-ost/pt-osc)
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
We would like
schemadiff
, and in particular theSchemaDiff
object (which is the result of aDiff
operation between two schemas) to be able to tell whether the set of diffs is applicable in an immediate/instant operation. We consider all butALTER TABLE
to be applicable immediately (e.g.CREATE TABLE
,ALTER VIEW
take almost no time to run). For anALTER TABLE
, we wantschemadiff
to judge the change combined by the original schema, and conclude whether it's applicable viaALGORITHM=INSTANT
.Today, there is logic in Online DDL to draw a somewhat similar conclusion. However, the Online DDL analysis takes place only after migrations are submitted. Having this logic in the declarative
schemadiff
library means we can make decisions before actually submitting the changes.Eventually, we will want to refactor the existing Online DDL analysis logic to use
schemadiff
.The text was updated successfully, but these errors were encountered: