问:
Is it possible to turn off directory locking with BDB? How is the performance
compared to regular FSDirectory for queries?
答:
If you're thinking of using Berkeley DB as a the store behind the Lucene index
via the DbDirectory Directory implementation, here are a few things to keep in
mind:
- always setUseCompoundFile(false)
don't use compound lucene index files on top of Berkeley DB:
. there is a bug that prevents this from working correctly
. it makes no sense anyway since it duplicates what DbDirectory is
already doing (all index files are stored in the same Berkeley DB file)
. it slows things down
- if you are using a transaction around all the index updates, you may want
to consider doing all the index updates in a RAMDirectory first and then
adding the RAMDirectory wholesale to the DbDirectory in that transaction.
This makes indexing considerably faster (3 times for me) and does a LOT
less thrashing around in Berkeley DB which can lead to a large number of
transactional log files rapidly filling up your hard drive.
I'm not really sure if and how index merging works. For my use, having no
merging is good enough since I never update existing documents, but always
instead add a new version of them. The concept of version is tied to my
application and each transaction corresponds to a new version.
分享到:
相关推荐
标签:apollo-bdb-1.1-javadoc.jar,apollo,bdb,1.1,javadoc,jar包下载,依赖包
"activemq-store-bdb-1.3.jar.zip"是一个包含"activemq-store-bdb-1.3.jar"和"license.txt"的压缩包。在部署时,我们需要解压这个zip文件,并将jar包添加到ActiveMQ的类路径中。同时,"license.txt"是软件许可协议,...
Berkeley DB(简称BDB)是Oracle公司开发的一款开源、轻量级、嵌入式数据库系统,广泛应用于需要快速数据存储和检索的应用场景。在18.1.40这个版本中,BDB继续提供了对高性能、低延迟数据管理的支持,尤其适合于内存...
本文将重点讨论ActiveMQ的存储机制,特别是基于Berkeley DB(BDB)的存储解决方案——activemq-store-bdb-2.0.jar,以及其在实际应用中的作用。 一、ActiveMQ与BDB存储 ActiveMQ提供了多种存储策略,包括文件系统...
而`activemq-store-bdb-2.1.jar`这个文件则是ActiveMQ使用Berkeley DB(简称BDB)作为存储引擎的一个组件。 Berkeley DB是由Oracle公司提供的一个嵌入式数据库系统,常用于需要高性能、高可用性和低延迟的数据存储...
本文将详细探讨`activemq-store-bdb-1.2.jar`这个特定版本的组件,以及其在Java环境下的使用和重要性。 一、ActiveMQ 存储机制 ActiveMQ 支持多种存储机制,包括文件系统、JDBC、LevelDB 和 BDB。BDB,全称 ...
本篇文章将围绕"activemq-store-bdb-1.5.jar.zip"这个压缩包文件,深入探讨ActiveMQ中基于Berkeley DB(BDB)的存储机制以及其在实际应用中的重要性。 首先,"activemq-store-bdb-1.5.jar"是ActiveMQ的一个存储模块...
标签:apollo-bdb-1.3.jar,apollo,bdb,1.3,jar包下载,依赖包
本篇将详细解析`activemq-store-bdb-1.4.jar`,探讨其核心功能和应用场景。 一、ActiveMQ与BDB存储 ActiveMQ的核心功能是接收、存储和转发消息。为了保证消息的可靠性和持久性,ActiveMQ提供了多种存储策略,其中...
标签:apollo-bdb-1.3-javadoc.jar,apollo,bdb,1.3,javadoc,jar包下载,依赖包
标签:apollo-bdb-1.0-sources.jar,apollo,bdb,1.0,sources,jar包下载,依赖包
标签:apollo-bdb-1.5-javadoc.jar,apollo,bdb,1.5,javadoc,jar包下载,依赖包
标签:apollo-bdb-1.3-sources.jar,apollo,bdb,1.3,sources,jar包下载,依赖包
标签:apollo-bdb-1.4-javadoc.jar,apollo,bdb,1.4,javadoc,jar包下载,依赖包
标签:apollo-bdb-1.7-sources.jar,apollo,bdb,1.7,sources,jar包下载,依赖包
标签:apollo-bdb-1.6-javadoc.jar,apollo,bdb,1.6,javadoc,jar包下载,依赖包
标签:apollo-bdb-1.1-sources.jar,apollo,bdb,1.1,sources,jar包下载,依赖包
标签:apollo-bdb-1.0-javadoc.jar,apollo,bdb,1.0,javadoc,jar包下载,依赖包
标签:apollo-bdb-1.2-javadoc.jar,apollo,bdb,1.2,javadoc,jar包下载,依赖包
标签:apollo-bdb-1.7-scaladoc.jar,apollo,bdb,1.7,scaladoc,jar包下载,依赖包