Skip to content

Perf: Optimize schema search by only generating query interpretations once per schema. #1860

@SharafMohamed

Description

@SharafMohamed

Request

In SchemaSearcher.cpp, the search(...) method currently generates query interpretations on every call. If the schema is the same, then all interpretations of a query will be the same, so this is very inefficient. However, if the schema changes, the interpretations must be generated from scratch.

Possible implementation

Cache the query interpretations per schema. Then, check if the current schema's interpretations are cached, if so avoid regenerating them and just use the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions