Manage keyspaces

A keyspace is a container for tables, similar to a schema in a relational database.

Creating a database with multiple keyspaces allows you to create different data models for each keyspace or store unique data in unique keyspaces. Using multiple keyspaces within a single region allows for an application built on a per-keyspace data model.

Add a keyspace

To add a new keyspace:

  1. In the Astra Portal, go to Databases, and then select your database.

  2. Click Add Keyspace, and then enter a name that meets the following requirements:

    1. No empty spaces or null

    2. A maximum of 48 characters

    3. Alphanumeric characters and/or underscores only

  3. Click Add Keyspace.

The database enters Maintenance status while it creates the new keyspace. Once the database returns to Active status, you can select the new keyspace.

Delete a keyspace

You can delete an unused keyspace if you have the keyspace permissions and more than one keyspace.

The data in the keyspace is permanently deleted.

To delete a keyspace with your Astra Portal:

  1. In the Astra Portal, go to Databases, and then select your database.

  2. In Keyspaces, click more_vert More on the keyspace you want to delete, and then click Delete.

  3. In the Delete Keyspace dialog, enter the name of the keyspace to confirm that you want to delete it.

  4. Click Delete Keyspace.

The database briefly enters Maintenance status while it deletes the keyspace. Once the database returns to Active status, the keyspace and all its data are permanently deleted.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

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: +1 (650) 389-6000, info@datastax.com