sql: speed up DROP COLUMN #35499
Labels
A-schema-changes
C-performance
Perf of queries or internals. Solution not expected to change functional behavior.
O-support
Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs
DROP COLUMN involves the following process:
step 3. can take a long time because it is a full scan as well as an update of every row.
What we can do is change this to
Note: the column name is now reusable.
When is the old data deleted?
We could immediately delete all the old data but that will double the data held because of MVCC.
So instead we can wait out the data TTL and then delete the column. This will immediately trigger TTL delete on the older version of the data.
Ideally we want to use the AddSSTable bulk ingest mechanism to delete the old column at timestamp T. I don't see any concerns with using it.
The text was updated successfully, but these errors were encountered: