Skip to content

Add parallel processing support for indexing files - #1580

Open
hahagu wants to merge 3 commits into
pulsejet:masterfrom
hahagu:master
Open

Add parallel processing support for indexing files#1580
hahagu wants to merge 3 commits into
pulsejet:masterfrom
hahagu:master

Conversation

@hahagu

@hahagu hahagu commented Dec 4, 2025

Copy link
Copy Markdown

No description provided.

- 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>
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.

1 participant