zoekt icon indicating copy to clipboard operation
zoekt copied to clipboard

spike: cache matchTree

Open stefanhengl opened this issue 2 years ago • 0 comments

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.

stefanhengl avatar Apr 06 '22 07:04 stefanhengl