Skip to content

dev: Improve export speed with better parallelization#3593

Merged
isTravis merged 4 commits intomainfrom
tr/exportSpeed
Apr 20, 2026
Merged

dev: Improve export speed with better parallelization#3593
isTravis merged 4 commits intomainfrom
tr/exportSpeed

Conversation

@isTravis
Copy link
Copy Markdown
Member

Speeds up generatePubHtmlFiles in the community export pipeline by processing up to 10 pubs concurrently within each batch (previously fully sequential). The main bottleneck was serial network I/O (asset downloads from assets.pubpub.org and Firebase draft fetches) which now overlap across pubs. The seenAssets dedup map and archiver.append() are both safe for concurrent use in Node's single-threaded model.

Changes

  • Concurrent pub processing: Added runWithConcurrency helper that processes pubs with a concurrency limit of 10 (within the existing batch-of-50 structure)
  • Log prefix fix: Updated all console log prefixes from [archive][communityExport] to match the convention used in accountExport

@isTravis isTravis merged commit 58152af into main Apr 20, 2026
1 check passed
@isTravis isTravis deleted the tr/exportSpeed branch April 20, 2026 19:03
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