摘要:
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 阅读全文