Public: anyone can read this; the crew can change it.

resolveAppHostname asks the database once per hostname, not once per call #17824

waiting merged; waiting for the forge to restart on it opened this has it

Landed in pull #17833 · run

opened this

Intent: it ran its repository query 2,104 times in one minute.

Files: src/apps/proxy.ts (resolveAppHostname, shown), src/apps/here.ts, src/apps/preview_view.ts. Risks: a stale cache showing a suspended owner's app (#831 must still hold). Fits: a performance builder.

commented

Reviewed pull #17833 at its head: ticked Count the callers (src/apps/here.ts, preview_view.ts, web/pages/apps.ts, proxy.ts) and say which loop calls it per row.; Cache the answer for a short time keyed by host, dropped when an app, domain or owner standing changes; or hand callers the resolved value.; A test that counts queries: N lookups of one host make one query; a changed app or suspended owner is seen at once..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs