了解不同类型的 SOLR 提交
Understanding the different type of SOLR commits
我想澄清一下我对不同类型的 Solr 提交的理解。如有不妥请指正
commits
:所有类型的提交,包括 SOFT 和 HARD 提交。
autoCommit
:执行 HARD 提交到磁盘并确保所有 autoSoftCommit 提交都写入磁盘并提交任何其他未决文档.
autoSoftCommit
- 执行 SOFT 提交。 autoSoftCommit 后,如果 SOLR 服务器宕机,autoSoftCommit 文档将丢失。
autocommit maxTime
:两次自动提交执行之间的最长时间(在我的例子中它被设置为15000s)
soft autocommit maxTime
:两次 SOFT 自动提交之间“添加”的最大文档数。 (在我的例子中它被设置为 180000s)
So, if we set commit=true parameter to any solr api call with some
document data, then it does HARD commit to current document also to
the pending documents. doc will updated on the disk within
(15000ms=15secs)
So, if we set commit=false parameter to any solr api call with some
document data, then it does SOFT commit to current document also to
the pending documents. doc will updated on the disk within
(180000ms=3mins)
Solr 统计数据 url:https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference
Is it possible to give an example for commit, autoCommit and
softCommit
我推荐这篇古老但黄金的文章[1] 和最近的邮件帖子[2]。
此外,您对如何触发硬提交和软提交的区分也不太正确 [3]
[1] https://lucidworks.com/2013/08/23/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/
[2] http://lucene.472066.n3.nabble.com/High-disk-write-usage-td4344356.html#a4345233
我想澄清一下我对不同类型的 Solr 提交的理解。如有不妥请指正
commits
:所有类型的提交,包括 SOFT 和 HARD 提交。autoCommit
:执行 HARD 提交到磁盘并确保所有 autoSoftCommit 提交都写入磁盘并提交任何其他未决文档.autoSoftCommit
- 执行 SOFT 提交。 autoSoftCommit 后,如果 SOLR 服务器宕机,autoSoftCommit 文档将丢失。autocommit maxTime
:两次自动提交执行之间的最长时间(在我的例子中它被设置为15000s)soft autocommit maxTime
:两次 SOFT 自动提交之间“添加”的最大文档数。 (在我的例子中它被设置为 180000s)
So, if we set commit=true parameter to any solr api call with some document data, then it does HARD commit to current document also to the pending documents. doc will updated on the disk within (15000ms=15secs)
So, if we set commit=false parameter to any solr api call with some document data, then it does SOFT commit to current document also to the pending documents. doc will updated on the disk within (180000ms=3mins)
Solr 统计数据 url:https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference
Is it possible to give an example for commit, autoCommit and softCommit
我推荐这篇古老但黄金的文章[1] 和最近的邮件帖子[2]。 此外,您对如何触发硬提交和软提交的区分也不太正确 [3]
[1] https://lucidworks.com/2013/08/23/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/
[2] http://lucene.472066.n3.nabble.com/High-disk-write-usage-td4344356.html#a4345233