在Google应用引擎上修改/删除数据存储索引 [英] Modify/Delete datastore Index on google app engine
问题描述
我的旧web.xml是
< datastore-index kind =TBLancestor =false>
< property name =Col1direction =asc/>
< property name =Col2direction =desc/>
< property name =Col3direction =asc/>
< property name =Col4direction =asc/>
< property name =Col5direction =asc/>
< property name =Col6direction =asc/>
< property name =Col7direction =asc/>
< property name =Col8direction =asc/>
< / datastore-index>
我的新web.xml是
< datastore-index kind =TBLancestor =false>
< property name =Col1direction =asc/>
< property name =Col2direction =desc/>
< property name =Col3direction =asc/>
< property name =Col4direction =asc/>
< property name =Col5direction =asc/>
< property name =Col6direction =desc/>
< property name =Col7direction =asc/>
< property name =Col8direction =asc/>
< / datastore-index>
在服务器上创建索引
TBL
------------
Col2▲,Col1▲,Col6▼
Col4▲,Col1▲,Col6▼
Col5▲,Col8▲,Col1▲,Col6▲=>我得到这个指数的错误
Col8▲,Col1▲,Col6▲
Col1▲,Col2▼,Col3▲,Col4▲,Col5▲,Col7▲,Col8▲
Col1▲,Col2 ▼,Col3▲,Col4▲,Col5▲,Col6▼,Col7▲,Col8▲
Col1▲,Col7▲
Col1▲,Col6▲
Col1▲,Col6▼
我得到的索引找不到第三个索引的错误。我想在所有索引中修改col6的方向并将其设置为desc。
我该怎么做?或者如何删除索引?
有人吗?
您'寻找 vacuum_indexes
命令。
$ b
http://code.google.com/appengine/docs/python/tools/uploadinganapp.html# Deleting_Unused_Indexes
这适用于Java和Python应用程序。实际上,Java的appcfg.sh根本不支持这个,所以如果你正在运行一个Java应用程序,你将需要Python SDK。
My old web.xml was
<datastore-index kind="TBL" ancestor="false">
<property name="Col1" direction="asc" />
<property name="Col2" direction="desc" />
<property name="Col3" direction="asc" />
<property name="Col4" direction="asc" />
<property name="Col5" direction="asc" />
<property name="Col6" direction="asc" />
<property name="Col7" direction="asc" />
<property name="Col8" direction="asc" />
</datastore-index>
My New web.xml is
<datastore-index kind="TBL" ancestor="false">
<property name="Col1" direction="asc" />
<property name="Col2" direction="desc" />
<property name="Col3" direction="asc" />
<property name="Col4" direction="asc" />
<property name="Col5" direction="asc" />
<property name="Col6" direction="desc" />
<property name="Col7" direction="asc" />
<property name="Col8" direction="asc" />
</datastore-index>
Created index on server
TBL
------------
Col2 ▲ , Col1 ▲ , Col6 ▼
Col4 ▲ , Col1 ▲ , Col6 ▼
Col5 ▲ , Col8 ▲ , Col1 ▲ , Col6 ▲ => I got error for this index
Col8 ▲ , Col1 ▲ , Col6 ▲
Col1 ▲ , Col2 ▼ , Col3 ▲ , Col4 ▲ , Col5 ▲ , Col7 ▲ , Col8 ▲
Col1 ▲ , Col2 ▼ , Col3 ▲ , Col4 ▲ , Col5 ▲ , Col6 ▼ , Col7 ▲ , Col8 ▲
Col1 ▲ , Col7 ▲
Col1 ▲ , Col6 ▲
Col1 ▲ , Col6 ▼
I am getting index not found error for 3rd index. I want to modify direction for col6 in all index and set it to "desc".
How can i do that? or how can i delete index?
Anybody?
You're looking for the vacuum_indexes
command.
http://code.google.com/appengine/docs/python/tools/uploadinganapp.html#Deleting_Unused_Indexes
This will work for both Java and Python apps. In fact, Java's appcfg.sh does not yet support this at all, so you'll need the Python SDK if you're running a Java app.
这篇关于在Google应用引擎上修改/删除数据存储索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!