mitre-attack / mitre-attack/attack-website

Pregenerate Search Index & Reduce IndexedDB Footprint

Open
#451 0 comments 0 reactions 1 assignee View on GitHub

@seansica is already working on this.

Since Aug 21, 2023.

Dominant language
HTML
Stars
588
Forks
174
Avg merge
13d 4h
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.