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

[MINDEXER-151] Speed up Index update from remote #255

Merged
merged 2 commits into from
Nov 4, 2022

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Oct 21, 2022

Introduce MT index update, allow users to specify the count of threads/silos to use while importing index. Without code change threads = 1 and there is no change in codepath (everything works as before).

This change (ingesting GZIP files raw records into Lucene index on multiple threads) on my PC halves the execution time: while BasicUsageExample on master takes over 15 minutes to finish (when doing full update), this PR makes it under 7 minutes when using 4 threads.


https://issues.apache.org/jira/browse/MINDEXER-151

@cstamas cstamas self-assigned this Oct 21, 2022
This change (ingesting GZIP files raw records into Lucene
index on multiple threads) on my PC halves the execution time:
while BasicUsageExample on master takes over 15 minutes to
finish (when doing full update), this PR makes it under
7 minutes.
@cstamas cstamas marked this pull request as ready for review November 4, 2022 16:58
@cstamas cstamas changed the title [MINDEXER-151] Proof of concept [MINDEXER-151] Speed up Index update from remote Nov 4, 2022
@cstamas cstamas merged commit 2e2a655 into apache:master Nov 4, 2022
@cstamas cstamas deleted the MINDEXER-151-poc branch November 4, 2022 17:04
Comment on lines +254 to 255
LOGGER.debug( "Merged silos..." );
w.commit();
Copy link
Member

@mbien mbien Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been experimenting with this in the NetBeans maven support modules and MT extraction (#4999) and it works great!

Could maven-indexer cleanup the temp silo folders after the merge? It is currently leaving almost 6 GB behind after a full update.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea, I forgot about it, sorry. Created https://issues.apache.org/jira/browse/MINDEXER-176

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.

2 participants