mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2018] Projected storage reads reuse full-row cache #990
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#990
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2018
Originally assigned to: @Promansis on GitHub.
Summary
Projected
storage_getandstorage_listreads can become slow again after a full collection read populates the new full-row storage cache. The projection paths still exist, but they project from cached full rows instead of streaming/skipping unrequested fields from disk.Expected behavior
Projected storage reads should avoid loading or walking unrequested heavy fields, even when a full collection cache exists from another code path.
Actual behavior
After a non-projected read caches a collection, later projected reads first use the cached full rows and only then apply projection. Large character, chat, or message payloads can therefore re-enter the hot path.
Steps to reproduce
refactoratf94b18ea.read_collection/read_collection_no_recovery.storage_getorstorage_listfor the same collection.Impact area
Environment
refactor/f94b18eaLogs, screenshots, or video
Relevant code paths:
src-tauri/src/commands/storage/commands/entities.rs: projectedstorage_list/storage_getdispatch remains present.src-tauri/crates/storage/src/lib.rs:read_collectioncaches full rows; projected readers checkcached_rowsbefore streaming projection.Focused projection tests still pass, so this is not a total overwrite of the previous projection fix. It is a cache interaction regression.
Regression notes
This started after the projected storage read optimization work. The likely regression interaction is from
7a09bef8 Add storage collection prep helpers (#2008), which added full collection cache reads that projected paths now consult first.Additional context
The root fix should preserve the full-row cache for paths that need it while keeping projected reads on a projection-first path for heavy collections/requests.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: