Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite alternative backend support #130

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

edulix
Copy link

@edulix edulix commented Aug 3, 2022

This PR is an initial proof of concept to add support for an alternative sqlite backend using sql.js and sql.js-httpvfs.

This way the search doesn't download the whole search index, reducing network usage, and also not load it in memory, reducing RAM usage. Still, not all the features of the search is supported:

  • Results are not scored, just matched. The search is implemented using FTS3. If using FTS4 or FTS5, we could probably implement scoring and order by score. But right now FTS4/5 is not compiled by default in sql.js and I have not tried to rebuild. Additionally, I'm not sure on how the scoring would affect the query network usage.
  • I've not added yet support for configuring the tokenization, although this is easy to do because FTS3 does support different tokenization options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant