On Jan 9, 1:22 am, Alexander Kojevnikov <[email protected]>
wrote:
> > Looking at it more deeply every 20th one takes a long time. I assume
> > that's the data fetch.
>
> I guess you are iterating over a Query or GqlQuery object to get the
> entities? This explains explain why every 20th iteration. 
> Fromhttp://code.google.com/appengine/docs/datastore/queryclass.html:
>
>   The iterator retrieves results from the datastore in small batches,
> allowing for the app to stop iterating on results to avoid fetching
> more than is needed.
>

That's a very interesting bit that I've missed while reading the docs,
but it is quite consistent with the statistics I've noticed. Anyways,
from my tests any result set that goes beyond 20-30 results is quickly
degrading the performance.

./alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to