What is the default limit on Datastore?

42 views
Skip to first unread message

Joshua Fox

unread,
Jun 21, 2017, 5:32:05 AM6/21/17
to google-a...@googlegroups.com
If I use withDefaults(), what is the limit on a Datastore query? I don't see it in the JavaDocs

This StackOverflow answer  seems to say that it used to be 1000 , but was changed. What is it now?

Jordan (Cloud Platform Support)

unread,
Jun 21, 2017, 3:03:44 PM6/21/17
to Google App Engine
'withDefaults()' is just a new FetchOptions(), and FetchOptions() has no default 'limit' as seen in the code

Even in the JavaDocs it explains that 'getLimit()' returns null if nothing has been set. The only default that is set is the chunk size. In the code it shows it being set to '20', but I think this has been since increased to ~300 (or ~1000). 
Reply all
Reply to author
Forward
0 new messages