# High frequency put mapping

**URL:** <https://discuss.elastic.co/t/high-frequency-put-mapping/22060>\
**Category:** Elasticsearch\
**Created:** [February 10, 2015, 10:39am UTC](https://discuss.elastic.co/t/high-frequency-put-mapping/22060 "2015-02-10T10:39:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_3](https://avatars.discourse-cdn.com/v4/letter/p/a3d4f5/32.png) [@Patrick\_3](https://discuss.elastic.co/u/Patrick_3)\
**Post date:** [February 10, 2015, 10:39am UTC](https://discuss.elastic.co/t/high-frequency-put-mapping/22060/1 "2015-02-10T10:39:27Z")

</div>

Hey guys,

My index holds 10.000s of fields with unknown name and type. I only know  
the name and type when the data "arrives" and it has to be indexed  
immediatly. Unfortunately, I cannot use autodetection.  
So, my idea was to put the mapping on EVERY single call OR do a "mapping  
exists?" request before. Do u know what is cheaper ? ("always put mapping"  
vs. "only put, if mapping doesn't exist").

Thx !

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1b6a9d55-ad89-43c5-b1d6-f8c3476e19be%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1b6a9d55-ad89-43c5-b1d6-f8c3476e19be%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:33am UTC](https://discuss.elastic.co/t/high-frequency-put-mapping/22060/2 "2017-07-06T00:33:56Z")

</div>

Closed on July 6, 2017, 12:33am UTC


