zhengxu4869
zhengxu4869
mongo.py中所有调用get_connection的function我都添加了self.close()后,测试和sql上线没问题了。 但是在线查询的话,表结构可以正常显示,点了sql查询页面会一直卡住不返回查询结果,但是点回去查询历史,能正常显示历史
(v1.12.0)该问题修改mongo.py后解决: 1. get_connection需要设置directConnection=true ``` def get_connection(self, db_name=None): self.db_name = db_name or self.instance.db_name or "admin" auth_db = self.instance.db_name or "admin" if self.user and self.password: self.conn = pymongo.MongoClient( self.host, self.port, username=self.user, password=self.password,...
修改后mongo使用tunnel模式可以正常查询,但是update看起来还有问题,后续应该会修复https://github.com/hhyo/Archery/pull/2970