attack-website icon indicating copy to clipboard operation
attack-website copied to clipboard

Pregenerate Search Index & Reduce IndexedDB Footprint

Open seansica opened this issue 10 months ago • 0 comments

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 avatar Aug 21 '23 18:08 seansica