Closed ownthink closed 3 years ago
The connection is not thread-safe, though the connection pool is thread-safe.
我记得1.0是加锁的,2.0是否可以处理下呢
我记得1.0是加锁的,2.0是否可以处理下呢
If you use connection_pool, it comes with a lock already
ref: https://github.com/vesoft-inc/nebula-python/blob/master/nebula2/gclient/net/__init__.py
不用pool的是否可以加锁下呢
------------------ 原始邮件 ------------------ 发件人: "vesoft-inc/nebula-python" @.>; 发送时间: 2021年5月26日(星期三) 下午2:48 @.>; @.**@.>; 主题: Re: [vesoft-inc/nebula-python] nebula 2.0的连接是否是线程安全的? (#109)
我记得1.0是加锁的,2.0是否可以处理下呢
If you use connection_pool, it comes with a lock already
ref: https://github.com/vesoft-inc/nebula-python/blob/master/nebula2/gclient/net/__init__.py
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
不用pool的是否可以加锁下呢 … ------------------ 原始邮件 ------------------ 发件人: "vesoft-inc/nebula-python" @.>; 发送时间: 2021年5月26日(星期三) 下午2:48 @.>; @.**@.>; 主题: Re: [vesoft-inc/nebula-python] nebula 2.0的连接是否是线程安全的? (#109) 我记得1.0是加锁的,2.0是否可以处理下呢 If you use connection_pool, it comes with a lock already ref: https://github.com/vesoft-inc/nebula-python/blob/master/nebula2/gclient/net/__init__.py — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
You can look at this PR https://github.com/vesoft-inc/nebula-python/pull/67. See if it meets your needs
目前安装的这个版本,是否可以更新下pip
目前安装的这个版本,是否可以更新下pip
pip install nebula2-python==2.0.0
thk
Problem resolved, so close it.
nebula 2.0的连接是否是线程安全的?