Skip to content

perf(adapters): fetch Strapi, WordPress, Contentful, Sanity concurrently (#12)#142

Merged
i-afaqrashid merged 1 commit into
mainfrom
feat/parallel-cms-fetch-rest
May 29, 2026
Merged

perf(adapters): fetch Strapi, WordPress, Contentful, Sanity concurrently (#12)#142
i-afaqrashid merged 1 commit into
mainfrom
feat/parallel-cms-fetch-rest

Conversation

@i-afaqrashid
Copy link
Copy Markdown
Owner

What

Follow-up to #141. Applies the order-preserving mapWithConcurrency pool to the remaining adapters so their collections / content types / single types are fetched in parallel:

  • Strapi: collections and single types each fetched concurrently.
  • WordPress: content types concurrently.
  • Contentful: content types concurrently.
  • Sanity: document types concurrently, then asset-metadata hydration runs on the flattened set (unchanged).

Pagination within a collection stays sequential; document order is preserved (config order).

How verified

  • All existing adapter fixture tests pass unchanged (order preserved).
  • pnpm verify green (217 tests).

Completes #12 across every multi-endpoint adapter.

…tly (#12)

Applies the order-preserving mapWithConcurrency pool to the remaining
adapters so collections, content types, and single types are fetched in
parallel instead of one after another:

- Strapi: collections and single types each fetched concurrently.
- WordPress: content types concurrently.
- Contentful: content types concurrently.
- Sanity: document types concurrently, then asset metadata is hydrated.

Pagination within a collection stays sequential and document order is
preserved.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cms-lab-site Ready Ready Preview, Comment May 29, 2026 9:23am

@i-afaqrashid i-afaqrashid merged commit 666294a into main May 29, 2026
12 checks passed
@i-afaqrashid i-afaqrashid deleted the feat/parallel-cms-fetch-rest branch May 29, 2026 09:24
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