Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stats panel send query twice? #1168

Closed
marcok opened this issue Apr 20, 2014 · 1 comment
Closed

stats panel send query twice? #1168

marcok opened this issue Apr 20, 2014 · 1 comment

Comments

@marcok
Copy link

marcok commented Apr 20, 2014

Hi all

I have to admit I'm a newbie and there is a fair chance, this absolutely no problem and behavior as expected.

But in the http requests kibana sends for the stats panels, I think the query contains twice the same thing (and so gets twice the same result, but without impact on the dashboard, so it's only a performance issue), doesn't it?

{
  "facets": {
    "stats": {
      "statistical": {
        "field": "@timestamp"
      },
      "facet_filter": {
        "fquery": {
          "query": {
            "filtered": {
              "query": {
                "bool": {
                  "should": [
                    {
                      "query_string": {
                        "query": "_exists_:timestamp_30"
                      }
                    }
                  ]
                }
              },
              "filter": {
                "bool": {
                  "must": [
                    {
                      "match_all": {}
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "stats_Wurde ausgeliefert": {
      "statistical": {
        "field": "@timestamp"
      },
      "facet_filter": {
        "fquery": {
          "query": {
            "filtered": {
              "query": {
                "bool": {
                  "should": [
                    {
                      "query_string": {
                        "query": "_exists_:timestamp_30"
                      }
                    }
                  ]
                }
              },
              "filter": {
                "bool": {
                  "must": [
                    {
                      "match_all": {}
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "size": 0
}
@rashidkpc
Copy link
Contributor

Its not actually sending it twice, the first part is for calculating at the featured stat, the other is for the breakdown, so if you had multiple queries, they would also be listed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@rashidkpc @marcok and others