Chapter 10. Datastore Administration
Your data is the heart of your application, so youâll want to take good care of it. Youâll want to watch it, and understand how it grows and how it affects your appâs behavior. Youâll want to help it evolve as your appâs functionality changes. You may even want up-to-date information about data types and sizes. And youâll want to poke at it, and prod it into shape using tools not necessarily built into your app.
App Engine provides a variety of administrative tools for learning about, testing, protecting, and fixing your datastore data. In this chapter, we look at a few of these tools, and their associated best practices.
Inspecting the Datastore
The first thing you might want to do with your appâs datastore is see whatâs in it. Your app provides a natural barrier between you and how your data is stored physically in the datastore, so many data troubleshooting sessions start with pulling back the covers and seeing whatâs there.
In the Storage section of the Cloud Console is a set of panels for Cloud Datastore (Figure 10-1). This is your main view of your projectâs datastore entities. The Dashboard summarizes how your storage space is used, including space for entities and their properties, as well as space for built-in and custom (composite) indexes. Select a kind from the drop-down menu to see a breakdown by named property.
In the Query panel, you can ...
Get Programming Google App Engine with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.