On 24 Mrz., 10:56, Koen Bok <[email protected]> wrote:
> I have two really weird performance issues that I can't seem to fix. > > - With our rest api the first request is always slow (~1500ms) and all > subsequent requests are way faster (~200ms). They are the exact same > requests just with different data. When I stop making requests for > like 10 secs the first one is slow again. In a request 2 memcache > objects (<2kb) are fetched and returned. What you see is that the app engine loads your code and imports all modules that you import in your app. This takes in that case about 1300ms. Requests short after that are faster, because your app is in memory. If you don't have a request for like 10 secs the app is removed from the cache so the next request has to load your app again. A way to maybe improve your app is that, if you just want to return something from the memcache, don't import apis that you don't need to serve your cached data. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
