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
有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







评论排行榜