apache / skywalking

APM, Application Performance Monitoring System
https://skywalking.apache.org/
Apache License 2.0
23.91k stars 6.53k forks source link

[Feature] Improve elasticsearch performance by using disable doc values #12741

Open wu-sheng opened 2 weeks ago

wu-sheng commented 2 weeks ago

Search before asking

Description

This topic was started by @hanahmily through #12507, which asked for no_sort in the index. Within discussions, we noticed that elasticsearch also has a concept, called "doc_values": false

image

Use case

@ElasticSearch.DisableDocValues annotation could be considered.

Possible use cases

  1. Value column of metrics.
  2. Conditions of logs and traces(skywalking and zipkin) exclude latency and timestamp, which are used in sorting.
  3. All searchable field in metadata(*_traffic)

Additionally, I hope this change could make effects on new indices(auto generated), and keep compatible with previous created indices.

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

Code of Conduct