What is the Google Appengine Ndb GQL query max limit?
Asked Answered
P

2

5

I am looking around in order to get an answer what is the max limit of results I can have from a GQL query on Ndb on Google AppEngine. I am using an implementation with cursors but it will be much faster if I retrieve them all at once.

Puseyism answered 10/6, 2012 at 11:51 Comment(0)
S
7

Basically you don't have the old limit of 1000 entities per query anymore, but consider using a reasonable limit, because you can hit the time out error and it's better to get them in batches so users won't wait during load time.

Submersible answered 10/6, 2012 at 14:39 Comment(0)
T
9

This depends on lots of things like the size of the entities and the number of values that need to look up in the index, so it's best to benchmark it for your specific application. Also beware that if you find that on a sunny day it takes e.g. 10 seconds to load all your items, that probably means that some small fraction of your queries will run into a timeout due to natural variations in datastore performance, and occasionally your app will hit the timeout all the time when the datastore is having a bad day (it happens).

Toughminded answered 11/6, 2012 at 2:42 Comment(0)
S
7

Basically you don't have the old limit of 1000 entities per query anymore, but consider using a reasonable limit, because you can hit the time out error and it's better to get them in batches so users won't wait during load time.

Submersible answered 10/6, 2012 at 14:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.