# Elasticsearch performance when dynamic mapping vs strict/false

**URL:** <https://discuss.elastic.co/t/elasticsearch-performance-when-dynamic-mapping-vs-strict-false/177376>\
**Category:** Elasticsearch\
**Created:** [April 17, 2019, 9:44pm UTC](https://discuss.elastic.co/t/elasticsearch-performance-when-dynamic-mapping-vs-strict-false/177376 "2019-04-17T21:44:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seperman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seperman/32/11550_2.png) [@seperman](https://discuss.elastic.co/u/seperman)\
**Post date:** [April 17, 2019, 9:44pm UTC](https://discuss.elastic.co/t/elasticsearch-performance-when-dynamic-mapping-vs-strict-false/177376/1 "2019-04-17T21:44:34Z")

</div>

Hello,

I couldn't find any material regarding benchmarking of Elasticsearch with dynamic mapping vs strict/false. Has anybody experienced performance issues when using dynamic mapping?

From what I understand when dynamic mapping is allowed, indexing a new document that has a new field will cause all documents in the shard to be re-indexed so they all have the new field. And depending on the size of documents that will cause performance issues. Is that correct?

Thanks,  
Sep

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 18, 2019, 4:05am UTC](https://discuss.elastic.co/t/elasticsearch-performance-when-dynamic-mapping-vs-strict-false/177376/2 "2019-04-18T04:05:30Z")

</div>

No, no documents will be reindexed but the cluster state will need to be updated and distributed with the new mapping. If you have large mappings an/or lots of indices/shards this can be slow and affect indexing performance. Generally it will however not have much impact though.

---

<div class="post-metadata">

**Author:** ![seperman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seperman/32/11550_2.png) [@seperman](https://discuss.elastic.co/u/seperman)\
**Post date:** [April 18, 2019, 5:24am UTC](https://discuss.elastic.co/t/elasticsearch-performance-when-dynamic-mapping-vs-strict-false/177376/3 "2019-04-18T05:24:14Z")

</div>

Cool. Thanks for the response.

---

<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:** [May 16, 2019, 5:24am UTC](https://discuss.elastic.co/t/elasticsearch-performance-when-dynamic-mapping-vs-strict-false/177376/4 "2019-05-16T05:24:23Z")

</div>

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