Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2788] Commit only once at the end of a search index rebuild
Commiting changes in the Solr search index is a heavy task that takes significant time. We are currently commiting changes after each update, which is probably fine for individual updated (ie users editing or creating a dataset), but when rebuilding the whole index it is unnecessary. A single commit at the end of the process is needed, and that speeds the reindexing about a 85%. A flag has been added (`-e` or `--commit-each`) to allow the old behaviour (commiting after each edit).
- Loading branch information
Showing
4 changed files
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters