English 中文(简体)
GQL导致出乎意料的复合指数
原标题:single-property GQL causes unexpected composite index

如果我执行此 GQL 查询 :

GQLQuery("SELECT user FROM MyUser WHERE foo = :1", fooz)

这将导致我的索引.yaml 以 < code > user 和 foo 属性制作一个综合索引。

- kind: MyUser
  properties:
  - name: user
  - name: foo

And if i delete that index, when it s uploaded to App Engine and my app runs, an error appears no matching index found.

我只是不明白为什么GAE 一定要为这个查询建立综合指数?

最佳回答
问题回答

暂无回答




相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签