How can a multi-property ndb query be successful without a composite index?

后端 未结 1 709
攒了一身酷
攒了一身酷 2020-12-19 19:48

I have this entity model:

class ApartCILabel(ndb.Model):
    project_id = ndb.IntegerProperty(indexed=True)
    changeset_ids = ndb.IntegerProperty(repeated=         


        
相关标签:
1条回答
  • 2020-12-19 20:19

    Queries using only equality filters do not require a composite index to be created. From the documentation:

    Cloud Datastore provides built-in, or automatic, indexes for queries of the following forms:

    • Queries using only ancestor and equality filters

    https://cloud.google.com/datastore/docs/concepts/indexes#index_configuration

    0 讨论(0)
提交回复
热议问题