This repository has no description
0

Configure Feed

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

perf: drop ensureContrailReady from landing page — just D1

Landing page only needs a json_extract query, not contrail schema
init. Cold start went from ~450ms to ~170ms.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>

author
nandi
co-author
Letta Code
date (May 14, 2026, 3:43 AM UTC) commit 244c0c83 parent b0be4482
+1 -1
+1 -1
src/worker.ts
··· 380 380 // Landing page — strata records feed 381 381 app.get("/", async (c) => { 382 382 // Load only the fields we need — records are 100KB+ with embedded connections 383 + // No ensureContrailReady needed — just D1 383 384 let islandsJson = "[]"; 384 385 try { 385 - await ensureContrailReady(db); 386 386 const rows = await db 387 387 .prepare("SELECT uri, json_extract(record, '$.source.uri') as lexmin, json_extract(record, '$.analysis.title') as title FROM records_strata ORDER BY time_us DESC LIMIT 10") 388 388 .all<{ uri: string; lexmin: string | null; title: string | null }>();