Dear Nick
I have noticed that this latency difference happens for a request with a 
new instance.  The same request will have considerable less latency for the 
second time for the same instance.  

I will also consider redoing some code and do some batch calls as suggested 
by you.

But,I have made this observation many times and easily I can produce the 
stats.  Why for a new instance and for the first request, the latencies are 
large.?   

On Friday, August 7, 2015 at 4:07:31 AM UTC+5:30, Nick (Cloud Platform 
Support) wrote:
>
> Hi Rajesh,
>
> Results like these are generally to be expected (at least in terms of the 
> variance of latencies). 
>
> The trade-off you make with Cloud services is that while you get the 
> scalability and pwoer of a data-center-wide RAM cache or schemaless 
> Datastore, you also get the variability of such data structures (and in the 
> case of Memcache, the volatility of a distributed RAM data structure where 
> the resources are shared within the data center). 
>
> Without seeing your code, nobody can offer you a solution. There are many 
> factors which could be optimized in theory. It looks, for one thing, that 
> you're making a lot of calls. Have you considered somehow batching or 
> grouping these queries into single operations?
>
> Best wishes,
>
> Nick
>
> On Monday, August 3, 2015 at 10:17:00 PM UTC-4, Rajesh Gupta wrote:
>>
>> Attached are the two screen shots showing the appstats
>> - same request
>> - same appengine instance
>> - same user
>>
>> The first request took 2914 ms, and the second request takes only 1032ms
>> As you can see in the attached images, 
>>
>> 3rd line datastore_v3.RunQuery, difference of 9ms 
>> 5th line memcache.get, difference of 73ms
>> 6th line memcache.get, differnce 73ms
>>
>> Through out the request, there is lot of time difference in the datastore 
>> and memcache calls, between the two requests.
>>
>> What can it done to make consistent.
>>
>> Rajesh
>> *www.VeersoftSolutions.com <http://www.veersoftsolutions.com/>*
>> *www.AccountingGuru.net <http://www.accountingguru.net/>*
>> *Accounting/Inventory/Orders on Google Cloud Platform and Mobile*
>>
>

-- 
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 email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/865617b6-2115-4141-a379-6ce16d0ec1a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to