Appengine filter inequality and ordering fails

前端 未结 5 1573
悲哀的现实
悲哀的现实 2021-02-01 18:03

I think I\'m overlooking something simple here, I can\'t imagine this is impossible to do.

I want to filter by a datetime attribute and then order the result by a rankin

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 18:37

    The Datastore has some limitations on queries. One is not allowing to combine inequality filter on one property with order on anther property. You can find more restrictions here:

    https://cloud.google.com/appengine/docs/python/ndb/queries

提交回复
热议问题