Skip to content

Comment on Goodbye, Google App Engineparent

Comments

No, it is true. After the recent update you could use a combination of queries and offsets to retrieve more than 1000 results. To get 1001 results or more you need multiple calls.

I am sure you are mistaken.

The reason I'm sure is that I just tried it:

  entities = data.MyModel.all().fetch(1010)
  print len(entities) # Prints 1010
Then I thought that perhaps you meant the limitation still exists in the low-level datastore API — and it's worked around by the Model interface making multiple calls to the low-level API — but that's not true either:
  from google.appengine.api import datastore
  entities = datastore.Query("MyModel").Get(1010)
  print len(entities) # Still prints 1010
So: what do you mean?

I am mistaken. I apologize.

No, you can set limit in a fetch to whatever you please and the datastore will return all those results to you ... the 1000 limit was removed.

http://code.google.com/appengine/docs/python/datastore/query...

Where does it say that 1000 is the limit?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.