Repository navigation
v1.1.2 - Redundant-fetch performance pass, round 2
Third performance pass over the MCP server and API. Four focused changes, each measured before and after on a disposable local Postgres 18 (numbers below are local microbenchmarks, not production latency):
- Brief-only project auth for brief-only tools (#187):
getTldrandlistPendingQuestionsloaded the latest document version (tens of KB) but only read the brief.AuthService.projectnow supports a'brief'mode that loads only the brief relation. Project with ~45 KB brief + ~30 KB document version, 300 rounds: 2.175 ms / 75.5 KB -> 1.385 ms / 45.6 KB per call. - Version page in the same query as the document (#188):
GET /projects/:id/documentsfetched the document and then its version page in a second query; the page now rides in the same query. Document with 50 versions, page of 30, 300 rounds: 1.463 ms -> 1.182 ms, 2 -> 1 queries per page. - HTTP change-request create reuses the access-checked project (#189):
POST /projects/:id/change-requestsfetched the project twice (narrow access check, then again with the brief); the controller now passes the already access-checked project, the same pattern the MCP path uses since #185. 1.355 ms -> 0.760 ms, 2 -> 1 queries per call. - Owner included in the full project fetch (#190):
getScopeDocumentran a second query for the owner row just to read the fallback author email; the full include now carries the owner. 1.901 ms -> 1.408 ms, 2 -> 1 queries per call.
Full methodology and per-change details are in each PR body.