You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by an...@apache.org on 2018/06/18 17:52:50 UTC

lucene-solr:branch_7x: SOLR-11277: Documentation for maxSize based auto hard commit

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x b4c01b0d1 -> 959ffb498


SOLR-11277: Documentation for maxSize based auto hard commit


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/959ffb49
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/959ffb49
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/959ffb49

Branch: refs/heads/branch_7x
Commit: 959ffb498823ef2bdbf6e2a9cc9304c86edb96fd
Parents: b4c01b0
Author: Anshum Gupta <an...@apache.org>
Authored: Mon Jun 18 09:56:43 2018 -0700
Committer: Anshum Gupta <an...@apache.org>
Committed: Mon Jun 18 10:52:05 2018 -0700

----------------------------------------------------------------------
 solr/solr-ref-guide/src/updatehandlers-in-solrconfig.adoc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/959ffb49/solr/solr-ref-guide/src/updatehandlers-in-solrconfig.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/updatehandlers-in-solrconfig.adoc b/solr/solr-ref-guide/src/updatehandlers-in-solrconfig.adoc
index cd60315..bad06d9 100644
--- a/solr/solr-ref-guide/src/updatehandlers-in-solrconfig.adoc
+++ b/solr/solr-ref-guide/src/updatehandlers-in-solrconfig.adoc
@@ -47,10 +47,13 @@ The number of updates that have occurred since the last commit.
 `maxTime`::
 The number of milliseconds since the oldest uncommitted update.
 
+`maxSize`::
+The maxSize of the transaction log, after which a hard commit is triggered. This is useful when the size of documents is unknown and the intention is to restric the size of the tlog to reasonable size.
+
 `openSearcher`::
 Whether to open a new searcher when performing a commit. If this is `false`, the commit will flush recent index changes to stable storage, but does not cause a new searcher to be opened to make those changes visible. The default is `true`.
 
-If either of the `maxDocs` or `maxTime` limits are reached, Solr automatically performs a commit operation. If the `autoCommit` tag is missing, then only explicit commits will update the index. The decision whether to use auto-commit or not depends on the needs of your application.
+If any of the `maxDocs`, `maxTime`, or `maxSize` limits are reached, Solr automatically performs a commit operation. If the `autoCommit` tag is missing, then only explicit commits will update the index. The decision whether to use auto-commit or not depends on the needs of your application.
 
 Determining the best auto-commit settings is a tradeoff between performance and accuracy. Settings that cause frequent updates will improve the accuracy of searches because new content will be searchable more quickly, but performance may suffer because of the frequent updates. Less frequent updates may improve performance but it will take longer for updates to show up in queries.
 
@@ -59,6 +62,7 @@ Determining the best auto-commit settings is a tradeoff between performance and
 <autoCommit>
   <maxDocs>10000</maxDocs>
   <maxTime>30000</maxTime>
+  <maxSize>512m</maxSize>
   <openSearcher>false</openSearcher>
 </autoCommit>
 ----