What is and does optimizing step of a project during indexing? #3979
Replies: 2 comments 7 replies
-
The "optimization" for index databases is run at the end of index database update. It basically reduces number of segments for the index database to 1: As specified in the Lucene documentation:
and as noted on SO, in the above source code comment and various remarks in some OpenGrok issues, it can probably be removed. The optimization step is done only for index databases that changed. The optimization step can be controlled using the |
Beta Was this translation helpful? Give feedback.
-
From the comments of your updated code, I understand that you don't really know if optimizing the indexes could have an impact on the performance of the OG webapp, am I wrong? In term of indexing runtime, for sure, it is better. Would you advice to optimize indexes regularly (eg: during week-end)? |
Beta Was this translation helpful? Give feedback.
-
Hi team,
While indexing (project based), I see into the logs that I have:
What is doimg this optimizing step?
What triggers it that could explain it is not run for each project?
Beta Was this translation helpful? Give feedback.
All reactions