Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Inefficiency when no field is specified for filtering (Specifically, FullTextFieldTransformation when doing schema_transformer) #1414

@hsuanyi

Description

@hsuanyi

On kibana, people tend to not specify field when querying. For example,
instead of doing field:XXX, users just type XXX.

I get why quesma attempts to match it with all fields. However it is inefficient. esp when, many fields are low cardinality .Do you plan to do some field inference? I have 2 ideas:

  • in configuration at startup time, allow specifying regex. and if the right hand side (XXX in this example) does not matcg regex. Do not add it to WHERE clause.
  • periodically, do SELECT distinct for the low cardinality fields (either specified in ch table comment or in conf.) and just match that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions