Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 lmdb 文档中:“MDB_NOTLS 模式是独占使用的,它允许读取事务在线程之间自由迁移,并允许单个线程维护多个读取事务。这使得大多数情况下可以无忧无虑地使用读取事务,例如在使用 gevent 时。”
但是没有手册如何在python中设置它。
我试过了:
import os os.environ['MDB_NOTLS'] = '1' import lmdb
这样对吗?
发现在python中默认是开启的。