Ionosphere.tv
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf: pre-warm concordance cache on appview startup

The concordance takes ~2.5 minutes to build on first request. Now it
starts building in the background after backfill completes, so the
first user request finds a warm cache.

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

+6
+6
apps/ionosphere-appview/src/appview.ts
··· 50 50 console.warn("No DID resolved, skipping backfill"); 51 51 } 52 52 53 + // Pre-warm the concordance cache in the background 54 + console.log("[init] Pre-warming concordance cache..."); 55 + fetch(`http://localhost:${PORT}/xrpc/tv.ionosphere.getConcordance`) 56 + .then(() => console.log("[init] Concordance cache warm")) 57 + .catch(() => console.warn("[init] Concordance pre-warm failed (will build on first request)")); 58 + 53 59 // ── Jetstream for live updates ────────────────────────────────────────────── 54 60 55 61 const jetstream = new JetstreamClient({