随笔 - 78  文章 - 1  评论 - 126  阅读 - 19万
07 2013 档案
今天测试了一下 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) 推荐(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) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示