[GH-ISSUE #5696] [Issue]: Character library and search scan full card data #3152

Closed
opened 2026-10-21 06:00:01 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Aug 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5696

Originally assigned to: @Gunterlie on GitHub.

Summary

The Character Library and its search can become slow with a large character collection. The current paginated path searches full serialized character-card JSON on the server, then parses and filters the returned cards again in the browser. Search also creates a new request for each input change.

Expected behavior

Character list loading should return compact list data. Search should use one prepared search representation and remain responsive while the user types.

Actual behavior

The server scans characters.data with LIKE. The client parses full cards, repeats search matching across card fields, calculates card metadata, and renders the results. Alphabetical and favorite sorting can require loading and parsing all matching rows before pagination.

Steps to reproduce

  1. Add or import a large character collection.
  2. Open the Character Library or Characters panel.
  3. Select alphabetical or favorite sorting.
  4. Type a search query.
  5. Observe request activity and the delay before results appear.

Environment

  • Marinara Engine version: 2.4.5 / staging
  • Install type: source
  • OS + version: Linux
  • Browser or app shell: Browser

Logs, screenshots, or video

Not attached. The issue is visible in browser network timing and server request timing.

Additional context

The Home omnibar is faster because it loads character data once, prepares searchable rows, and searches in local memory. A shared server-side character catalog can provide the same search representation to both the omnibar and the Character Library without adding SQLite.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Gunterlie on GitHub (Aug 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5696 Originally assigned to: @Gunterlie on GitHub. ## Summary The Character Library and its search can become slow with a large character collection. The current paginated path searches full serialized character-card JSON on the server, then parses and filters the returned cards again in the browser. Search also creates a new request for each input change. ## Expected behavior Character list loading should return compact list data. Search should use one prepared search representation and remain responsive while the user types. ## Actual behavior The server scans characters.data with LIKE. The client parses full cards, repeats search matching across card fields, calculates card metadata, and renders the results. Alphabetical and favorite sorting can require loading and parsing all matching rows before pagination. ## Steps to reproduce 1. Add or import a large character collection. 2. Open the Character Library or Characters panel. 3. Select alphabetical or favorite sorting. 4. Type a search query. 5. Observe request activity and the delay before results appear. ## Environment - Marinara Engine version: 2.4.5 / staging - Install type: source - OS + version: Linux - Browser or app shell: Browser ## Logs, screenshots, or video Not attached. The issue is visible in browser network timing and server request timing. ## Additional context The Home omnibar is faster because it loads character data once, prepares searchable rows, and searches in local memory. A shared server-side character catalog can provide the same search representation to both the omnibar and the Character Library without adding SQLite. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:01 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3152
No description provided.