Skip to content

Question: Server-side search for large recipes? #135

Description

@MagicJF

MWS injects the full text of a recipe’s tiddlers into the page on load — there’s no lazy/skinny loading of tiddler content, so the whole recipe has to reach the browser before it’s usable. That’s fine at moderate scale, but it means browser-side search only ever sees what actually got loaded: with a very large recipe (say, millions of tiddlers), the initial load itself becomes impractical, and search is limited to whatever fraction made it into memory.

Classic TiddlyWiki’s lazy-loading docs describe an old plan to delegate full-text search to the server (via TiddlyWeb’s search API) for exactly this reason — once tiddler content isn’t fully loaded client-side, the server is the only place that can “see” everything and search over it.

Is something like this on the table for MWS — a server-side search endpoint that recipes/bags could query directly, instead of relying on the browser having the full text in memory? Or is this considered out of scope / better left to something like SQLite FTS at the storage layer?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions