Is there any way to turn on compression for an existing table? I don't care if there's downtime for this.
The docs only mention setting compression when the table is created.
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.
Sign up to join this communityIs there any way to turn on compression for an existing table? I don't care if there's downtime for this.
The docs only mention setting compression when the table is created.
ALTER TABLE xxx ROW_FORMAT=COMPRESSED
ALTER TABLE xxx ROW_FORMAT=Compressed
apparently works too, mentioned here lullabot.com/articles/…. Thanks.
SHOW TABLE STATUS
). The ratios I have seen have been 2:1 compression.
Feb 4, 2019 at 0:59
ALTER TABLE ... FORCE
once the new settings have been changed.