Managing Firestore in Datastore mode from the Console

This page describes how to view and manage the entities, indexes, and statistics for the data your application stores in your database. It also shows how to enable or disable Datastore Admin access, and how to enable or disable Datastore writes. You can do these activities on the Datastore page in the Google Cloud Console.

Viewing Datastore statistics

Go to the Datastore Dashboard to view data for the entities in your application, as well as statistics for the built-in and composite indexes.

Go to the Datastore Dashboard page

The dashboard should look like:

Datastore Dashboard

For more information about the statistics on this page, see Viewing Statistics in the Console.

Viewing indexes

Go to the Indexes page to view a table of your application's indexes.

Go to the Indexes page

For each index, you should see its status, such as whether it is ready to serve your application. You should also see the amount of storage space used by the index and the number of entries in each index.

Viewing entities

Go to the Entities page to view the entities that your application stored in your database.

Go to the Entities page

You should see:

Datastore Entities page

You can also create, update, delete, and query entities on this page. Learn how in the Quickstart.

Enabling or disabling database writes

It's normally a good idea to disable writes prior to a restore. This helps avoid conflicts between the restore and any new data written to your database.

Disabling writes prevents entities from being changed by

  • the Datastore Viewer.
  • applications that use the Datastore API.

To enable or disable writes:

  1. Go to the Admin page.

    Go to the Admin page

  2. Click Enable writes to enable writes, or Disable writes to disable writes. The button text varies, depending on the state of your project.

Datastore Admin (deprecated)

Cloud Datastore previously supported the ability to enable Datastore Admin, an optional module with bulk delete and backup features. Datastore Admin was replaced by more reliable alternatives:

If you previously enabled Datastore Admin, you can continue to access the module. If you disable Datastore Admin, you will not be able to re-enable the module.

Disable Datastore Admin access:

  1. Go to the Admin page.
    Go to the Admin page

  2. Click Disable Datastore Admin.

Caveats on using Datastore Admin features

  • For copy, delete, and backups, recent updates might not be considered.
  • All Datastore Admin operations occur within your application, and thus count against your quota.
  • We strongly recommend that you disable writes during a backup or restore.
  • Existing entities with the same keys will be overwritten during a copy/restore operation. Duplicates are not created if copy/restore operations are performed multiple times. Copy/restore operations do not delete extra data.
  • If you use a non-default queue for backup/restore, you can only specify the target ah-builtin-python-bundle in queue.yaml. You cannot use any other targets.

Viewing Datastore Admin resource usage

When you run a Datastore Admin job, you are actually running an underlying MapReduce job. MapReduce jobs cause frontend instance hours to increase on top of Storage operations and Storage usage.

To view your resource usage:

  1. Visit the Cloud Console App Engine page.

    Go to the App Engine page

  2. Use the pulldown menus at the top of the page to select the default service and the ah-builtin-python-bundle version.

What's next?