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

spike: cache matchTree #322

Open
Tracked by #33488
stefanhengl opened this issue Apr 6, 2022 · 0 comments
Open
Tracked by #33488

spike: cache matchTree #322

stefanhengl opened this issue Apr 6, 2022 · 0 comments

Comments

@stefanhengl
Copy link
Member

Webserver creates a new matchTree for every shard it searches. The structure of the matchTree, however, only depends on the query. Some trees, like substrMatchTree, call 'iterateNgramsand thus depend onindexData`. We should timebox this spike and see whether

  1. matchTree construction shows up in webserver's CPU profile
  2. there is a good way to hydrate a cached matchTree with indexData, instead of creating it from scratch every time.
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

No branches or pull requests

1 participant