Skip to content

perf(raw): read the share and its raw row once per request [stable0.7] - #237

Merged
ernolf merged 1 commit into
stable0.7from
ernolf/perf/single-share-lookup-stable0.7
Dec 3, 2026
Merged

ernolf merged 1 commit into
stable0.7from
ernolf/perf/single-share-lookup-stable0.7

Conversation

@ernolf

@ernolf ernolf commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Related #231

  • PubPageController hands the id of the share it resolved to returnRawResponse(), and CspManager reads the per-share CSP with it instead of looking the token up again with getShareByToken(). CspManager no longer needs IManager.
  • RawShareRegistry keeps the result of getMeta() per share id for the rest of the request; enable(), disable() and purge() drop it, and every write to raw_shares goes through them.
  • A public raw request now reads the share once instead of twice and its raw_shares row at most once instead of three times.
  • The order of the CSP sources stays: a raw_csp token rule still comes before the per-share CSP, and a private request reads no share.
  • The service factory of this branch differs from main, so this is not a cherry-pick.

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
@ernolf ernolf self-assigned this Dec 2, 2026
@ernolf ernolf added enhancement New feature or request php Pull requests that update php code labels Dec 2, 2026
@ernolf
ernolf merged commit 144e90f into stable0.7 Dec 3, 2026
55 checks passed
@github-actions
github-actions Bot deleted the ernolf/perf/single-share-lookup-stable0.7 branch December 3, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant