Google App Engine Java: how to remove unused index

2019-03-30 22:20发布

If I found information about removing unused indexes, like in Uploading and Managing a Python App / Deleting Unused Indexes, it was only for the Python environment...

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

2条回答
该账号已被封号
2楼-- · 2019-03-30 23:00

The only way you currently can remove an index is using the Python SDK as described here.

The missing vacuum_indexes functionality from the Java SDK is logged as a bug, but not yet fixed.

查看更多
聊天终结者
3楼-- · 2019-03-30 23:06

Since version 1.4.2 the Java SDK supports the vacuum_indexes action. Run this command to delete unused indices:

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

On Windows with the Eclipse SDK it's 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
查看更多
登录 后发表回答