Alter a materialized view (MV)

Materialized views are created with the default table properties. Use the ALTER MATERIALIZED VIEW command to alter the view’s properties.

This command requires a keyspace, table, and a materialized view.

Specify updated properties and values in a WITH clause. The following example alters compression

ALTER MATERIALIZED VIEW cycling.cyclist_by_age
  WITH compression = {
    'sstable_compression' : 'DeflateCompressor',
    'chunk_length_kb' : 64
  }

For more information and examples, see the command reference for ALTER MATERIALIZED VIEW.

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM