开发者

autoGenerate="false" is ignored in datastore-indexes.xml

开发者 https://www.devze.com 2023-03-01 11:41 出处:网络
I\'ve deleted datastore-indexes-auto.xml and local_db.bin, set autoGenerate=\"false\" inin datastore-indexes.xml, and restarted the dev server.Still, it persists in automatically generating indexes an

I've deleted datastore-indexes-auto.xml and local_db.bin, set autoGenerate="false" in in datastore-indexes.xml, and restarted the dev server. Still, it persists in automatically generating indexes and writing them to datastore-indexes-auto.xml.

I'm using appengine 1.4.3 for Java with the latest google plugin for eclipse.

Any secret开发者_JAVA技巧s I need to know about to get the dev server to throw an exception instead of silently creating the index?


I had this same problem, and it turns out I was calling the file datastore-indices.xml, rather than datastore-indexes.xml. Are you sure you called the file exactly right? It should be in war/WEB-INF/datastore-indexes.xml -- not in appengine-generated.

It took awhile to find the documentation on this -- it's under "Configuration" -- Datastore Index Configuration.

0

精彩评论

暂无评论...
验证码 换一张
取 消