Manage multiple keyspaces

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

Multiple keyspaces allow for greater data availability in multiple regions. With multiple keyspaces in multiple regions, you can control what application data is available by each region. For example, if you want an app’s data to live in regions 1 and 3, but not in region 2, you can do this by managing the keyspace for that schema.

Adding a new keyspace

  1. Open a browser, navigate to Astra DB, and log in.

  1. On the Dashboard page, select the database name to access the Overview page for your selected database.

  1. Select Add Keyspace.

  1. Enter the name of the new keyspace.

  1. Select Save.

Your list of keyspaces displays on the Overview page for your database.

Removing a keyspace

If you delete a keyspace, all data in that keyspace is removed and cannot be recovered.

  1. Open a browser, navigate to DataStax Astra DB, and log in.

  1. On the Dashboard page, select the database name to access the Overview page for your selected database.

  1. Select the overflow menu for the keyspace you want to delete.

  1. Select Delete.

  1. In the Delete keyspace menu, type in the name of the keyspace to delete.

  1. Select Delete Keyspace.

Your list of keyspaces will be updated on the Overview page to show only the remaining keyspaces for your database.