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:
-
In the Astra Portal, go to Databases, and then select your database.
-
Click Add Keyspace, and then enter a name that meets the following requirements:
-
No empty spaces or null
-
A maximum of 48 characters
-
Alphanumeric characters and/or underscores only
-
-
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:
-
In the Astra Portal, go to Databases, and then select your database.
-
In Keyspaces, click
More on the keyspace you want to delete, and then click Delete. -
In the Delete Keyspace dialog, enter the name of the keyspace to confirm that you want to delete it.
-
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.