[google-appengine] Datastore queries are unpredictably slow when a limit is applied

2017-03-04 Thread Arjunkumar Udainath
I have an app that's sort of like a to-do application. Any given user would have "Tasks" that are pending at any given time. The number of tasks pending for a user can range from 0 to 5000. I need to fetch the pending tasks (or at least a small batch) for each user when they load the page. How

[google-appengine] Re: Datastore queries are unpredictably slow when a limit is applied

2017-03-04 Thread Arjunkumar Udainath
Additional info: The query has 4 "equals" filters on 4 different properties (3 strings and 1 Boolean). It does not have a sort order applied. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving

[google-appengine] Re: Datastore queries are unpredictably slow when a limit is applied

2017-03-05 Thread Arjunkumar Udainath
My replies take a long time to get posted here since I'm new. My application is written in Java and instance class of my app is F4. There are a total of 922,758 entities of that Kind in the Datastore. Here's the function: public static Map getEntitiesUsingQueryCursor( String kind , int limit

[google-appengine] Re: Datastore queries are unpredictably slow when a limit is applied

2017-03-09 Thread Arjunkumar Udainath
Thanks for your help. Adding the index worked out for us. Thank you for providing the other suggestions as well. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an em