[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Yogesh Agarwal
Memcache is shared across instances, automatically it is available as a service you do not have to load it just. User it straight away to store or access object in memory. Thanks, Yogesh On May 22, 9:37 pm, Rahul wrote: > Chau, > > Thanks for pointing to the link. I did go through the link and

Re: [appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Tristan Slominski
This sounds a lot like the sharded counter scenario. I think they came up with a committing to datastore strategy that worked well. On another hand, you can always queue a task and let the task queue persist the preferences when it gets around to it. On Mon, May 24, 2010 at 11:16, Rahul wrote:

[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Rahul
Ok. Let me explain the complete scenario. Suppose I have lot of preference on my page which are stored in the database. Now i have multiple options, 1. Load all the preference in Hashmap in a servlet and mark that servlet as Load-on-startup to 0 and then use the hashmap cache when a new user visit

[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Rahul
Chau, I have already tried various solutions out of those mentioned above, including "b) request Google to load your app before start dispatch request to that instance " but it is still slow, My exact question is when to put the data in cache. Thanks, Rahul On May 24, 4:49 am, Chau Huynh wrote

[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Rahul
Tristan, I do understand what you are saying but my question is there exactly do we need to put data in memcache. If i put it in a servlet and load that servlet with load-on-startup parameter, then does it remain in cache for the entire period as I guess, load-on-startup servlet is loaded every ti

Re: [appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-24 Thread Chau Huynh
Hi Rahul, About loading request/performance, there're lots of discussions that you can find in the groups, please just try google it. Here are some notes based on reading those. Latency causes by 1- time to start new JVM 2- time to load your application To reduce load time by 1) others star requ

[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-23 Thread Tristan
The way you load the memcache, you just put data in it. It is automatically shared between all JVMs and you don't have to do anything special. As to when to load it up. Say you have some preferences stored in the datastore. You should put those preferences into the memcache and always check the mem

[appengine-java] Re: AppEngine gets very slow when not used for some time

2010-05-22 Thread Rahul
Chau, Thanks for pointing to the link. I did go through the link and i think, what i thought was right. Also i was going through the following point in the section you provided : "How can I speed up loading requests? " and the second point mentioned is "Share expensive initialization between JVMs.