Dumping and Restoring Data with Google App Engine

Google App Engine has a way to dump and restore data, using the bulkloader.py command from Python SDK.

To be able to use it with a Java application, first we’ve to map the RemoteApiServlet in web.xml

<servlet> <servlet-name>RemoteApi</servlet-name> <servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>RemoteApi</servlet-name> <url-pattern>/remote_api</url-pattern> </servlet-mapping>

Here is the command to dump all the instances of . . . → Read More: Dumping and Restoring Data with Google App Engine

Cleaning up unused indexes in Google App Engine

Google App Engine allows 200 datastore indexes, so once in a while is a good idea to clean up unused indexes. This operation is called vacuum-indexes, and is available in the Python and Java SDK.

I’ve done the index cleaning in my Java application using the Python SDK, because historically this operation was possible only . . . → Read More: Cleaning up unused indexes in Google App Engine