Skip to content

OUT-3183: batch Copilot API calls and parallelize page data fetching#94

Merged
SandipBajracharya merged 2 commits intomainfrom
OUT-3183
Apr 1, 2026
Merged

OUT-3183: batch Copilot API calls and parallelize page data fetching#94
SandipBajracharya merged 2 commits intomainfrom
OUT-3183

Conversation

@SandipBajracharya
Copy link
Copy Markdown
Collaborator

Summary

Replace N+1 per-mapping API calls (retrieveFileChannel, getCompany, getClient) with 3 bulk fetches (listFileChannels, getCompanies, getClients), reducing ~600 API calls to 3 for portals with ~200 channel syncs. Parallelize getSelectorClientsCompanies, getWorkspace, and listFormattedChannelMap via Promise.all on page load.

Testing Criteria

Loom

…ching

Replace N+1 per-mapping API calls (retrieveFileChannel, getCompany, getClient)
with 3 bulk fetches (listFileChannels, getCompanies, getClients), reducing
~600 API calls to 3 for portals with ~200 channel syncs. Parallelize
getSelectorClientsCompanies, getWorkspace, and listFormattedChannelMap
via Promise.all on page load.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear bot commented Mar 31, 2026

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

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

Project Deployment Actions Updated (UTC)
dropbox-integration Ready Ready Preview, Comment Apr 1, 2026 10:16am

Request Review

Copy link
Copy Markdown
Collaborator

@priosshrsth priosshrsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. @SandipBajracharya Though we might want to simplify this file in the future.

@SandipBajracharya SandipBajracharya merged commit f465c6b into main Apr 1, 2026
4 checks 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.

2 participants