今天测试了一下 sqlalchemy 性能
摘要:self.db.query(Users).filter(Users.Id==1).first() <self.db.execute('SELECT * FROM `users` WHERE Id=%s' % user_id).first() <self.db.queryRow('SELECT * FROM `users` WHERE `Id`=%s' % user_id)sqlalchemy的echo=False的ab测试如下:ab -n 2000 -c 50 http://127.0.0.1:8888/self.db.query(Users).fi
阅读全文
posted @
2013-07-25 23:39
myx
阅读(1864)
推荐(0) 编辑
PIL The _imaging C module is not installed
摘要:今天在WIN 7 64位用PIL的时候,提示The _imaging C module is not installed ,原来是需要安装64位的。刚开始安装的是这个:http://www.pythonware.com/products/pil/ 但如果是64位,需要安装这:Pillow-2.1.0.win-amd64-py2.7.exehttp://www.lfd.uci.edu/~gohlke/pythonlibs/#pil在python后输入import ImageFont如果不出错就OK了。。在UBtunu下暂时还没遇到问题。 在公司的电脑也没遇到这问题。不过Google了发现很多人
阅读全文
posted @
2013-07-21 18:50
myx
阅读(6181)
推荐(0) 编辑