Skip to content

Implement fetchCreatorProfilesByIds function to retrieve creator prof…#392

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
extolkom:feat/358-batch-creator-detail-fetches
May 31, 2026
Merged

Implement fetchCreatorProfilesByIds function to retrieve creator prof…#392
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
extolkom:feat/358-batch-creator-detail-fetches

Conversation

@extolkom
Copy link
Copy Markdown
Contributor

Closes #358

What

Added a batching helper that fetches multiple creator records in a single database query and applied it wherever creator details were being fetched one-by-one within a request.

Why

Endpoints resolving multiple creator details were issuing one query per creator, causing unnecessary round trips and degrading performance under load.

Changes

  • Added batching helper that accepts a list of creator IDs and returns results in input order via a single WHERE id IN (...) query
  • Replaced sequential single-fetch calls with the new helper across affected endpoints/services
  • Added unit test confirming a single query is issued for multiple IDs

Testing

  • Existing tests pass
  • New unit test covers single-query behavior and order preservation

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@extolkom Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit ad0f769 into accesslayerorg:main May 31, 2026
1 check passed
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.

Add helper for batching creator detail fetches to reduce database round trips

2 participants