I do not know how to profile on GAE. There are some things to consider: 0) make sure you use the provided gaehandler.py 1) you get the benefit of chaching bytecode compiler models and actions only if the page if accessed often 2) you will get a speed up if you use memcache session instead of datastore based sessions (the default) 3) Use
if request.function in ['one','two','three']:.... to conditionally execute code in models so that you do not define tables that your actions do not need 4) Avoid too many {{ }} in templates. 5) Use memcache as much as you can. Massimo On Apr 14, 2:38 pm, Ted G <tedg...@gmail.com> wrote: > I'm wondering if anyone has tips on where I should start in trying to > track down performance problems running my web2py application on GAE. > Initially I created an application using only the api's supplied by > GAE. This app was very fast in terms of response times. > > I've since recreated and updated the app within web2py and have been > frustrated with very poor performance. I experience long delays when > loading pages and in particular, when loading pages that contain small > images (where the image source is using web2py's download() handler to > retrieve an image stored in the db as a web2py upload field). > > As mentioned, my previous GAE API version of the app also stored these > same images as blobs in the db, but experienced none of the > performance issues I see under web2py. > > Due to the delay experienced loading pages, my first thought, after > reading threads in this group, was that maybe my code was being > recompiled on every request. I updated to 1.61 this morning in the > hope that the GAE cache issue it was addressing would solve my problem > - but running a side to side comparison between a 1.59 version and > 1.61 on GAE I did not see any difference. > > Any tips on how I can narrow down the source of the performance > problems would be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---