I want to close the loop on this thread with some positive notes. For the past few days, I have been working with a super fast dev environment thanks to the workarounds I describe below, follow the links for the kudos. In addition, to how the server feels during the development cycle, the application regression tests now run three times faster.
Here is a summary of workarounds for 1.6.0. Please do star the issues mentioned if you want to see them fixed by the Google team in a future release. Patches are at the end. 1. Comment out the SetupIndexes line in dev_appserver.py (see/star issue 6005 <http://code.google.com/p/googleappengine/issues/detail?id=6005> for the reason) 2. Turn off all dev server attempts to write logs into the datastore, this seems to be an upcoming feature that currently just slows down development (see/star issue 6355<http://code.google.com/p/googleappengine/issues/detail?id=6355>for this) 3. Finally, this is not new and was already worked around in my environment, but if you have a realistic application you need to proxy the serving of static content (images/javascript/css) if you want to get any work done. I use apache for that and a mini framework I have built. I describe the issue more here<http://www.gae123.com/articles/gaet/fir-tim-exp.html>. It might also help in the long term, if you star issues 343<http://code.google.com/p/googleappengine/issues/detail?id=343>, 6005 and 4720. One more piece of good news for me, sqllite started working with my application. I do not remember when was the last time I tried it and would not pass my test cases and/or hang once in a while; now it mostly works. Unfortunately, when I tried to upload a lot of data it locked pretty quickly, so it is not as great as I thought but these are steps in the right direction. I want to acknowledge Robert S. help from Google who followed up on this thread and updated the bugs in the database. PATCHES: *1. **+++ google_appengine_1.6.0/google/appengine/tools/dev_appserver.py * *@@ -2628,7 +2629,7 @@* - dev_appserver_index.SetupIndexes(config.application, root_path) + #dev_appserver_index.SetupIndexes(config.application, root_path) *2. +++ google_appengine_1.6.0/google/appengine/tools/dev_appserver.py * @@ -1435,11 +1435,12 @@ sys.stderr = LoggingStream() - logservice._global_buffer = logservice.LogsBuffer() + logservice.AUTOFLUSH_ENABLED = False + #logservice._global_buffer = logservice.LogsBuffer() - app_log_handler = app_logging.AppLogsHandler( - logservice.logs_buffer().stream()) - logging.getLogger().addHandler(app_log_handler) + #app_log_handler = app_logging.AppLogsHandler( + # logservice.logs_buffer().stream()) + #logging.getLogger().addHandler(app_log_handler) os.environ.clear() os.environ.update(env) @@ -1514,9 +1515,9 @@ sys.stdout = old_stdout - logservice_stub._flush_logs_buffer() + #logservice_stub._flush_logs_buffer() sys.stderr = old_stderr - logging.getLogger().removeHandler(app_log_handler) + #logging.getLogger().removeHandler(app_log_handler) -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/dTTOjkgp1tsJ. 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.
