# Why Elasticsearch 1.7.3 is faster 20% than 1.7.5?

**URL:** https://discuss.elastic.co/t/why-elasticsearch-1-7-3-is-faster-20-than-1-7-5/67102
**Category:** Elasticsearch
**Created:** [November 24, 2016, 11:28am UTC](https://discuss.elastic.co/t/why-elasticsearch-1-7-3-is-faster-20-than-1-7-5/67102 "2016-11-24T11:28:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Joomler](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@Joomler](https://discuss.elastic.co/u/Joomler)
#### Post date: [November 24, 2016, 11:28am UTC](https://discuss.elastic.co/t/why-elasticsearch-1-7-3-is-faster-20-than-1-7-5/67102/1 "2016-11-24T11:28:36Z")

</div>

Why Elasticsearch 1.7.3 is faster 20% than 1.7.5 ?

Absolutely the same config and index data, 30 queries in loop:  
1.7.3 - 34s  
1.7.5 - 47s

I wanted to upgrade to 2.4 but it even slower. New 5 version too.  
So, performance degrade, so strange.

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [November 25, 2016, 2:55pm UTC](https://discuss.elastic.co/t/why-elasticsearch-1-7-3-is-faster-20-than-1-7-5/67102/2 "2016-11-25T14:55:14Z")

</div>

What do the queries look like?

---

<div class="post-metadata">

### Author: ![Joomler](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@Joomler](https://discuss.elastic.co/u/Joomler)
#### Post date: [November 25, 2016, 3:40pm UTC](https://discuss.elastic.co/t/why-elasticsearch-1-7-3-is-faster-20-than-1-7-5/67102/3 "2016-11-25T15:40:22Z")

</div>

Like this:

```
          "query": {
            "filtered": {
              "query": {
                "bool": {
                  "must_not": [{"match": {"text": "porn"}}]
                  "should" : [
                                {"match" : { "text" : {"query" : '\"apple ipod\"~4', "_name" : "first"} }},
                                {"match" : { "text" : {"query" : '\"ai bot\"~4', "_name" : "first"} }}, 
                                {"match" : { "text" : {"query" : "google", "_name" : "last"} }}, 
                                 ....here go a lot of other match queris......
                            ],                    
                }
              },
              #"filter": {"terms": {"from_id": "-46461134"}}
            }
          },
          "aggs" : {
            "per_tag": {
              "terms": {"field": "from_id"},
    
            }
          }
        }
```

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [November 25, 2016, 4:08pm UTC](https://discuss.elastic.co/t/why-elasticsearch-1-7-3-is-faster-20-than-1-7-5/67102/4 "2016-11-25T16:08:24Z")

</div>

Looking at the changelog, a difference between 1.7.3 and 1.7.5 is quite unexpected so I suspect something like the 1.7.5 instance had a colder FS/filter cache than the 1.7.3 instance.

---

<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: [December 23, 2016, 4:08pm UTC](https://discuss.elastic.co/t/why-elasticsearch-1-7-3-is-faster-20-than-1-7-5/67102/5 "2016-12-23T16:08:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
