Google App Engine Java: how to remove unused indexes?

If I found information about deleting unused indexes, for example, in Downloading and managing a Python application / Removing unused indexes , this was only for the Python Environment ...

Any way to mark the index in the file [~ project] /war/WEB-INF/datastore-indexes.xml ?

+4
source share
2 answers

Starting with version 1.4.2, the Java SDK supports the vacuum_indexes action. Run this command to remove unused indexes:

./<appengine-java-sdk-path>/bin/appcfg.sh vacuum_indexes <myapp-path>/war 

On Windows with the Eclipse SDK, this is something like:

 <eclipse-path>\plugins\com.google.appengine.eclipse.sdkbundle_1.4.3.v201103311225\appengine-java-sdk-1.4.3\bin\appcfg.cmd vacuum_indexes <myapp-path>\war 
+5
source

The only way to remove the index is to use the Python SDK, as described here .

Missing vacuum_indexes functions from the Java SDK are logged as an error but not yet fixed.

+1
source

Source: https://habr.com/ru/post/1299267/


All Articles