# Update doc vs create new doc for small nested data

**URL:** <https://discuss.elastic.co/t/update-doc-vs-create-new-doc-for-small-nested-data/115451>\
**Category:** Elasticsearch\
**Created:** [January 14, 2018, 5:05pm UTC](https://discuss.elastic.co/t/update-doc-vs-create-new-doc-for-small-nested-data/115451 "2018-01-14T17:05:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sccds](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sccds](https://discuss.elastic.co/u/sccds)\
**Post date:** [January 14, 2018, 5:05pm UTC](https://discuss.elastic.co/t/update-doc-vs-create-new-doc-for-small-nested-data/115451/1 "2018-01-14T17:05:22Z")

</div>

Hi, I meet a question for update doc vs new doc for nested data.  
My data is like:  
{  
"some key": xxx,  
"key": [  
{"nested key1": value1},  
{"nested key2": value2}  
]  
}

In the nested key part, about num 3-5 data integrated in one json file in 10s.

I can keep append data(update) into the same \_index/\_type/\_doc, or create a new doc with small new data. Which one is better for this case?

What is the default index refreshing in ES?

Which one is better for space saving? how is the "update/create" performance? how is the searching query performance?

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:** [February 11, 2018, 5:05pm UTC](https://discuss.elastic.co/t/update-doc-vs-create-new-doc-for-small-nested-data/115451/2 "2018-02-11T17:05:39Z")

</div>

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