Google App Engine Datastore returns no rows if i have an Order clause
问题 I have a 'kind' in datastore like so: type CompanyDS struct { Name string } If i query it with the 'order' clause below, it returns no rows (but doesn't give any error): var companiesDS []CompanyDS datastore.NewQuery("Company").Order("Name").GetAll(c, &companiesDS) However if i remove the 'order("Name")' section it returns all the rows just fine. 回答1: Since without Order() you can query all entities, that means they do exist with name "Company" and property "Name" . Indices for single