bsddb:哈希格式、btree格式、记录格式的区别

bsddb: difference between hash format, btree format, and record format

我在 Python 脚本中使用 bsddb 基本上是替代太大而无法放入内存的字典。从该文档页面查看 Python wrapper, I can use either bsddb.hashopen, bsddb.btopen, or bsddb.rnopen, but I don't know what the difference between these formats is. I assumed that this link 到 oracle.com 上某个页面的文档会提供更多详细信息,但它是 404.

BTREE 应该完全保留在内存中。在你的情况下你需要 bsddb.hashopen.

查看 oracle documentation 了解更多信息。