开发者

How do I debug when GAE works slow in local development but works fine when uploaded to Google?

I am running under Windows7 locally. I have tried both Python 2.5 and Python 2.7.2. It just seems to stall a lot locally. All I am using is authentication and database. I get very inconsistent results locally. I upload the app to the server and it works. Sometimes when I am on a database page I will hit Refresh 10 times and 3 of the times the browser will just keep spinning. 开发者_高级运维

I am using the latest GAE 1.5.3. (I was having the same issue with older 1.4.x version as well.)

Any ideas on what to try or what to look into?


You might want to switch to SQLLite for your local Datastore, you can do this by using the following option:

dev_appserver.py --use_sqlite

Another good practice would be to use the High Replication datastore simulation flag to give you a good idea how an application configured to use the High replication datastore will do in production, you can achieve the following by suing:

dev_appserver.py --high_replication

For the full documentation please check the following Link

Hope this helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜