Files
outline/server/routes/api/subscriptions
Tom MoorandClaude 68b912825c perf: Skip loading document body for authorization-only lookups (#13706)
Several high-traffic endpoints (views.create, views.list, comments.list,
relationships.list, subscriptions.list/info, events.list, pins.info,
documents.insights/users/documents) load a document purely to run a
policy check, yet fetched its full content, text and state columns on
every request. The read policy only inspects ownership, membership and
collection fields, so pass includeContent: false to use the existing
withoutContent scope. comments.list keeps the body only when anchor text
is requested, which is the sole consumer of it.


Claude-Session: https://claude.ai/code/session_017swPbmq4SwtkE15fcRhdcU

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-08 11:20:39 -04:00
..