mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1887] [Issue]: storage_get is slow for cold character record lookup #912
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#912
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 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1887
Originally assigned to: @Promansis on GitHub.
Summary
A single command:storage_get for a character record can take roughly 800-900ms on a cold collection read.
Expected behavior
storage_get should locate a requested record without deserializing large payloads from unrelated records in the same collection.
Actual behavior
The character collection is stored as pretty JSON. Large data fields can appear before id, so the streaming id lookup could deserialize heavy non-matching character payloads before discovering each row was not the requested id.
Steps to reproduce
Impact area
Environment
6d0a0000Logs, screenshots, or video
Devtools showed command:storage_get taking roughly 800-900ms after launch.
Regression notes
This is a storage performance issue exposed by cold character-selector workflows.
Additional context
Fix added a pretty-file fast path that scans for the requested id line and parses only the matching record, falling back to the existing JSON deserializer for compact/unusual files.
Template check