Optimize onboarding chat document creation with Promise.all#822
Optimize onboarding chat document creation with Promise.all#822ishaanxgupta wants to merge 2 commits intosupermemoryai:mainfrom
Conversation
EntelligenceAI PR SummaryOptimizes document creation in
Confidence Score: 5/5 - Safe to MergeSafe to merge — this PR correctly parallelizes document creation in Key Findings:
|
WalkthroughRefactored the document creation logic in Changes
🔗 Cross-Repository Impact AnalysisEnable automatic detection of breaking changes across your dependent repositories. → Set up now Learn more about Cross-Repository AnalysisWhat It Does
How to Enable
Benefits
|
|
@MaheshtheDev @Dhravya please have a look |
Replaced the sequential for loop that calls $fetch for document creation with an asynchronous draftDocs.map logic resolving via Promise.all.
The setup side-bar execution was blocked by N+1 consecutive API fetch calls. Running them concurrently improves wait-time during the onboarding experience.