Add parallel processing support for indexing files - #1580
Open
hahagu wants to merge 3 commits into
Open
Conversation
- Introduced a new 'jobs' option to specify the number of parallel indexing jobs. - Implemented parallel indexing logic in the Index class, allowing for faster processing of files. - Added methods for partitioning file IDs and running worker processes. - Enhanced error handling for worker processes and ensured compatibility with the pcntl extension. This update improves the efficiency of the indexing process, especially for large datasets. Signed-off-by: Mingu Kang <mingu.kang@defy.works>
- Updated the indexByIds method to support batch progress reporting in parallel mode. - Improved logging to provide detailed progress updates during file indexing. - Adjusted error handling to skip locked files silently in parallel mode. - Added final summary reporting for indexed files in parallel processing. This change enhances the visibility of the indexing process, especially when handling large sets of files. Signed-off-by: Mingu Kang <mingu.kang@defy.works>
- Enhanced the output of worker processes to include real-time status updates during file indexing. - Modified the runWorker method to accept a line offset for better display management in parallel mode. - Updated the indexByIds method to support line-based progress reporting for workers. - Improved error handling to provide feedback for failed indexing attempts while maintaining parallel processing efficiency. These changes enhance the user experience by providing clearer visibility into the indexing process and improving error reporting. Signed-off-by: Mingu Kang <mingu.kang@defy.works>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.