Counting Results in a Google App Engine GQL Query

I am trying to create a search engine in Google App Engine and want to display the number of results obtained from this search query. I use fetch () to display multiple results at a time, but donโ€™t know how to display the number of results returned by the search. The count () function has a limit of 1000, and my results can exceed even 10,000,000. So, if someone knows how to do this, please suggest me .........

+3
source share
2 answers

As others have told you, it count()does not scale efficiently.
To get more than 1000 objects, despite what the documentation says, you must specify an upper limit:

your_model.all().count(100000000)
+7
count

. :

(): , . count() , , . count() , , . count() . , , . : GQL

, count() .

: , 1.3.6 ( -17-2010).

.

: 1000?

1000, , 1000 , 1000, .

0

Source: https://habr.com/ru/post/1792170/


All Articles