2008-03-31

hibernate索引调优

关键字: hibernate search lucene
3.7 索引调优

有2组参数可以设置。

在数据库触发索引操作的时候

• hibernate.search.[default|<indexname>].transaction.merge_factor
控制片段合并频率及大小
• hibernate.search.[default|<indexname>].transaction.max_merge_docs
定义一个片段中最大文档数
• hibernate.search.[default|<indexname>].transaction.max_buffered_docs
定义在创建索引阶段缓存在内存中的文档数量
---------
索引通过FullTextSession.index()时,以下参数被使用
• hibernate.search.[default|<indexname>].batch.merge_factor
• hibernate.search.[default|<indexname>].batch.max_merge_docs
• hibernate.search.[default|<indexname>].batch.max_buffered_docs

Unless the corresponding .batch property is explicitly set, the value will default to the .transaction property.

还有一个参数 hibernate.search.worker.batch_size
all index operations are queued until batch_size is reached

引用
For more information about Lucene indexing performances, please refer to the Lucene documentation
评论
发表评论

您还没有登录,请登录后发表评论

wutao8818
搜索本博客
我的相册
6b189252-4523-3f66-9b60-b4c688770fec-thumb
电信搞什么
共 12 张
最近加入圈子
存档
最新评论
  • 部署django记
    不知道。现在自己有服务器了。就不用虚拟主机了。
    -- by wutao8818
  • 部署django记
    有没有其他python虚拟主机服务的介绍
    -- by jimichan
  • 部署django记
    我现在已经不用他们的主机了。服务质量太差。有些东西问他们觉得不是他们的事情就不管 ...
    -- by wutao8818
  • 部署django记
    请问,那些静态文件 如 css、images 怎么配置呢?我也打算发布在他们那里
    -- by jimichan
  • NIO
    好,明白为什么存在了,谢谢
    -- by chyy001