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

Pregenerate Search Index & Reduce IndexedDB Footprint #451

Open
seansica opened this issue Aug 21, 2023 · 0 comments
Open

Pregenerate Search Index & Reduce IndexedDB Footprint #451

seansica opened this issue Aug 21, 2023 · 0 comments
Assignees

Comments

@seansica
Copy link
Contributor

At present, the search index is generated client-side. There is no reason why it can't be generated server-side (by the GitHub Actions pipeline), and delivered to users in a file. This would eliminate the initial delay observed when a user performs their first search query before the FlexSearch index has been generated. In other words, generating the search index search-side should improve search speed by a large factor.

In doing so, we can also stop persisting the entirety of the index.json contents in the IndexedDB, thus reducing the overall storage footprint and improving the load performance, since fewer IndexedDB transactions are made.

@seansica seansica self-assigned this Aug 21, 2023
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

When branches are created from issues, their pull requests are automatically linked.

1 participant