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 <cmhu...@gmail.com> wrote: > 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 request to > a) pay to reserve JVM > b) request Google to load your app before start dispatch request to that > instance > c) accept the situation > > For 2) we try to > a- try to use/replace frameworks with light-weight ones: datastore access > framework, MVC framework,... > b- try to limit calculation in your index page to alleviate the impact of > loading request > c- design your object model based on your need, so that you do calculation > at insert time, not at query time. For example, in my app, if I want to > report on year and quarter, then I have 5 summary "record" for those, > instead of querying and computing those > d- caching result. For example, If I know 1 one 5 piece of data above would > be read frequently, then I will read those 5 all, and put into memcache for > later use > ... > > So it's application-specific, I don't know if each of above can help you. > But only you who can know if which one of your code can be cached and how... > > HTH > > > > > > On Sun, May 23, 2010 at 11:37 AM, Rahul <rahul.jun...@gmail.com> wrote: > > 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. For > > example, put data which is expensive to read or compute into memcache, > > where it can be quickly read by other JVMs during startup." so in this > > scenario where do you load this memcache so that it can be shared > > between the jvm instances. > > > Any pointers or clues highly appreciated. > > > Thanks, > > Rahul > > > On May 22, 10:51 pm, Chau Huynh <cmhu...@gmail.com> wrote: > > > It seems like loading request... > >http://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request > > > > On Sun, May 23, 2010 at 4:55 AM, Rahul <rahul.jun...@gmail.com> wrote: > > > > I have an application running on appengine and no doubt it works > > > > great. but when the application is not used for some time. it goes > > > > very slow. > > > > Suppose i don;t use the application for around 5 hours or so, then > > > > next time when i try to use it, the response is very slow. Is there > > > > any thing specific which i am missing in adding application to > > > > appengine. > > > > > Any clues are pointers are highly appreciated. > > > > > Thanks, > > > > Rahul > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google App Engine for Java" group. > > > > To post to this group, send email to > > > > google-appengine-j...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B > > > > unsubscr...@googlegroups.com> > > <google-appengine-java%2bunsubscr...@googlegroups.com<google-appengine-java > > %252bunsubscr...@googlegroups.com> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > > To post to this group, send email to > > google-appengine-j...@googlegroups.com. > > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B > > unsubscr...@googlegroups.com> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/google-appengine-java?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2B > > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.