perf: deduplicate OG data fetches across document cards#831
perf: deduplicate OG data fetches across document cards#831ved015 wants to merge 7 commits intosupermemoryai:mainfrom
Conversation
EntelligenceAI PR SummaryAdds OG data fetch deduplication and caching to
Confidence Score: 5/5 - Safe to MergeSafe to merge — this PR introduces a focused, well-scoped guard in Key Findings:
Files requiring special attention
|
WalkthroughIntroduces a module-level caching and request deduplication layer for Open Graph data fetching in the memories grid. A new 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
|
Summary
Added module level cache (Map) and in-flight request deduplication for /api/og fetches in DocumentCard
Multiple cards with the same URL now share a single fetch instead of each firing independently
Subsequent renders instantly resolve from cache with zero network calls
Why
Each DocumentCard independently fetches OG metadata on mount. With 100 cards in a grid, this fires up to 100 parallel requests to /api/og many of which may be for the same URL. No caching, no deduplication.
Performance
@MaheshtheDev @Dhravya please have a look