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 Cloud Datastore Admin access, and how to enable or disable Cloud Datastore writes. You can do these activities on the Cloud Datastore page in the Google Cloud Platform Console.
Viewing Cloud Datastore statistics
Go to the Cloud Datastore Dashboard to view data for the entities in your application, as well as statistics for the built-in and composite indexes.
The dashboard should look like:
For more information about the statistics on this page, see Viewing Statistics in the Console.
Go to the Indexes page to view a table of your application's indexes.
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.
Go to the Entities page to view the entities that your application stored in your database.
You should see:
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 Cloud Datastore Viewer.
- applications that use the Cloud Datastore API.
To enable or disable writes:
Go to the Admin page.
Click Enable writes to enable writes, or Disable writes to disable writes. The button text varies, depending on the state of your project.
Cloud Datastore Admin (deprecated)
Cloud Datastore previously supported the ability to enable Cloud Datastore Admin, an optional module with bulk delete and backup features. Cloud Datastore Admin was replaced by more reliable alternatives:
- The backup feature was replaced by managed exports and imports.
- The bulk delete feature was replaced by the Bulk Delete Entities template for Cloud Dataflow.
If you previously enabled Cloud Datastore Admin, you can continue to access the module. If you disable Cloud Datastore Admin, you will not be able to re-enable the module.
Disable Cloud Datastore Admin access:
Go to the Admin page.
Go to the Admin page
Click Disable Datastore Admin.
Caveats on using Cloud Datastore Admin features
- For copy, delete, and backups, recent updates might not be considered.
- All Cloud 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
queue.yaml. You cannot use any other targets.
Viewing Cloud Datastore Admin resource usage
When you run a Cloud 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:
Visit the GCP Console App Engine page.
Use the pulldown menus at the top of the page to select the
defaultservice and the