Skip to content

spike: cache matchTree #322

Open
Open
@stefanhengl

Description

@stefanhengl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions