Skip to content

Database #336

@imdfl

Description

@imdfl

We want to support client side searches. Examples:

  • Find all pages that match a label set
  • Find all pages relevant to a time range

I think that this functionality can be fully implemented as a client side database.
The flow doesn't even need a cms:

  1. All the metadata is stored in the md files.
  2. Each build starts by indexing the content, adding everything to an in-memory database instance, exporting the database to a file and optionally committing the latter.
  3. The client pulls the database dump after loading and initializes a client-side db (same as in the prev step) with it.

I think that RxDB is a good candidate. It can run in-memory, supports both node.js and browsers and offers export and import of JSON data.

Full text search

I don't have a favorite solution yet. A straightforward client-side solution - loading the full text index on the client side - may turn out to not be scalable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions