Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not optimize Solr index after each add/delete #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant