# Poor performance after upgrading elasticsearch to 2.2

**URL:** <https://discuss.elastic.co/t/poor-performance-after-upgrading-elasticsearch-to-2-2/41963>\
**Category:** Elasticsearch\
**Created:** [February 17, 2016, 3:53am UTC](https://discuss.elastic.co/t/poor-performance-after-upgrading-elasticsearch-to-2-2/41963 "2016-02-17T03:53:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)\
**Post date:** [February 17, 2016, 3:53am UTC](https://discuss.elastic.co/t/poor-performance-after-upgrading-elasticsearch-to-2-2/41963/1 "2016-02-17T03:53:31Z")

</div>

Hi Team,  
Currently I am running elasticsearch with three nodes. Couple of days back I upgraded elasticsearch from 2.1.1 to 2.2.0. In one of the index I have around 52 million records and I am running a simple query to get the first inserted record using the time field which is in epoch time format.

Below is the query

```
{
  
     "size": 0,
     "filter": {
         "query": {
             "range": {
                "time": {
                   "from": "now-1d",
                   "to": "now"
                }
             }
         }
     },
     "aggs": {
      "min_time": {
         "min": {
            "field": "time"
         }
      }
      }
}

```

Now this simple query is taking like 8 min to return min value. Before upgrading to was comparatively fast. Is this a know issue?

Thanks,

---

<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 5, 2017, 11:15pm UTC](https://discuss.elastic.co/t/poor-performance-after-upgrading-elasticsearch-to-2-2/41963/2 "2017-07-05T23:15:52Z")

</div>


