# Faster queries

**URL:** <https://discuss.elastic.co/t/faster-queries/41985>\
**Category:** Kibana\
**Created:** [February 17, 2016, 8:28am UTC](https://discuss.elastic.co/t/faster-queries/41985 "2016-02-17T08:28:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaharmor](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@shaharmor](https://discuss.elastic.co/u/shaharmor)\
**Post date:** [February 17, 2016, 8:28am UTC](https://discuss.elastic.co/t/faster-queries/41985/1 "2016-02-17T08:28:41Z")

</div>

Hi,

I was wondering if there is any significant performance increase if i use a `filtered` query like this:

```auto
{
    "filtered": {
        "filter": {
            "bool": {
                "must": [
                    {
                        "term": {
                            "_cache": true,
                            "action": "download"
                        }
                    }
                ]
            }
        }
    }
}

```

Instead of using the DSL like this:  
`action:download`

Specifically i was wondering regarding the following things:

1. Performance - Both for the first query and for following ones (with different dates)
2. Useability - For example if i want to add an additional filter now, in the first example (The filtered one) i will have to beautify the query, find exactly where to put it, minify it again, and put that in the query box, while for the second query i have simply do: `action:download AND file:XXX` for example.

Is there a way to put the `filtered` query in kibana but not also show it in the query box? So extra filters with use the default kibana filtering

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:02pm UTC](https://discuss.elastic.co/t/faster-queries/41985/2 "2017-07-06T14:02:03Z")

</div>


