# hasParentQuery search slow down fielddata \_parent memory clear

**URL:** <https://discuss.elastic.co/t/hasparentquery-search-slow-down-fielddata--parent-memory-clear/38486>\
**Category:** Elasticsearch\
**Created:** [January 6, 2016, 10:12am UTC](https://discuss.elastic.co/t/hasparentquery-search-slow-down-fielddata--parent-memory-clear/38486 "2016-01-06T10:12:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![z-star](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/z-star/32/6633_2.png) [@z-star](https://discuss.elastic.co/u/z-star)\
**Post date:** [January 6, 2016, 10:12am UTC](https://discuss.elastic.co/t/hasparentquery-search-slow-down-fielddata--parent-memory-clear/38486/1 "2016-01-06T10:12:59Z")

</div>

es2.1.1  
principle of Parent Child  
When I build a index, and real-time update data ,\_parent memory has been cleared. then hasParentQuery search a very long time.  
how to change the \_parent memory cleanup strategy?

```auto
es v2.1.1
"indices": {
        "fielddata": {
          "memory_size": "0b",
          "memory_size_in_bytes": 0,
          "evictions": 0,
          "fields": {
            "_parent": {
              "memory_size": "0b",
              "memory_size_in_bytes": 0
            }
          }
        }
      }

es v1.1.1
      "indices": {
        "fielddata": {
          "memory_size": "606.3mb",
          "memory_size_in_bytes": 635833336,
          "evictions": 0,
            "_parent": {
              "memory_size": "188.1mb",
              "memory_size_in_bytes": 197273307
            }
       }
    }

```

---

<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:26pm UTC](https://discuss.elastic.co/t/hasparentquery-search-slow-down-fielddata--parent-memory-clear/38486/2 "2017-07-05T23:26:46Z")

</div>


