Skip to content

Conversation

@jajm
Copy link

@jajm jajm commented Jan 24, 2017

From https://wiki.apache.org/solr/UpdateXmlMessages :

An optimize is like a hard commit except that it forces all of the index
segments to be merged into a single segment first. Depending on the use cases,
this operation should be performed infrequently (like nightly), if at all,
since it is very expensive and involves reading and re-writing the entire
index. Segments are normally merged over time anyway (as determined by the
merge policy), and optimize just forces these merges to occur immediately.

This patch removes all calls to optimize() except where it makes sense to have
them (indexAll, deleteAll, hookUninstall)

From https://wiki.apache.org/solr/UpdateXmlMessages :

  An optimize is like a hard commit except that it forces all of the index
  segments to be merged into a single segment first. Depending on the use cases,
  this operation should be performed infrequently (like nightly), if at all,
  since it is very expensive and involves reading and re-writing the entire
  index.  Segments are normally merged over time anyway (as determined by the
  merge policy), and optimize just forces these merges to occur immediately.

This patch removes all calls to optimize() except where it makes sense to have
them (indexAll, deleteAll, hookUninstall)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant