Skip to content

Parallel bulk processing#451

Merged
Nitya-003 merged 3 commits into
Nitya-003:mainfrom
Aditya8369:445
Jun 20, 2026
Merged

Parallel bulk processing#451
Nitya-003 merged 3 commits into
Nitya-003:mainfrom
Aditya8369:445

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Parallel bulk processing implemented.

backend/services/bulkVerificationService.js

Added BULK_JOB_CONCURRENCY (default 10) to control worker pool size.
Replaced the sequential row loop with a bounded concurrency worker pool.
Kept idempotency reservation per-row using reserveIdempotencyKey (no batching).
Updated progress (job.processedRows) periodically using BULK_JOB_PROGRESS_UPDATE_EVERY (default 20) + final save.
Preserved CSV row order in job.results by writing results[i].
backend/tests/verificationBulkConcurrency.test.js

Added a concurrency/idempotency test.

closes #445

@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nitya-003 Nitya-003 merged commit 6bc14df into Nitya-003:main Jun 20, 2026
3 of 7 checks passed
@Nitya-003 Nitya-003 added gssoc:approved gssoc'26 approved quality:clean *1.2 for contributor +5 pts for mentor level:intermediate 35 pts for contributor 20 pts for mentor type:refactor labels Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved gssoc'26 approved level:intermediate 35 pts for contributor 20 pts for mentor quality:clean *1.2 for contributor +5 pts for mentor type:refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parallelize bulk processing with controlled concurrency

2 participants