Skip to content

[stable34] perf(session): fetch document only once in SessionMiddleware - #9296

Merged
mejo- merged 1 commit into
stable34from
backport/9294/stable34
Sep 29, 2026
Merged

mejo- merged 1 commit into
stable34from
backport/9294/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 29, 2026

Copy link
Copy Markdown

Backport of PR #9294

Endpoints that require both a document session and a matching base
version etag (push, sync, save) looked up the document twice per
request: once in assertDocumentBaseVersionEtag() and again in
assertDocumentSession(). Keep the fetched document in the middleware
for the rest of the request so both checks share one query.

Supersedes #5773.

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5.5
@mejo-
mejo- merged commit 3028f99 into stable34 Sep 29, 2026
68 of 70 checks passed
@mejo-
mejo- deleted the backport/9294/stable34 branch September 29, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant