# Will attribute script make elasticsearch write slower?

**URL:** <https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212>\
**Category:** Elasticsearch\
**Created:** [January 30, 2023, 10:18am UTC](https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212 "2023-01-30T10:18:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![robocon20x](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robocon20x/32/99145_2.png) [@robocon20x](https://discuss.elastic.co/u/robocon20x)\
**Post date:** [January 30, 2023, 10:18am UTC](https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212/1 "2023-01-30T10:18:11Z")

</div>

Hi everyone, i am going to create many script columns for my index, will this make elasticsearch write to this index slower than before, because it will create many columns per document of index?

---

<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:** [January 31, 2023, 7:01am UTC](https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212/2 "2023-01-31T07:01:09Z")

</div>

> [@robocon20x](#):
>
> create many script columns for my index

Are you referring to [runtime fields](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/runtime.html)?

Which version of Elasticsearch are you using?

---

<div class="post-metadata">

**Author:** ![robocon20x](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robocon20x/32/99145_2.png) [@robocon20x](https://discuss.elastic.co/u/robocon20x)\
**Post date:** [February 1, 2023, 6:53am UTC](https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212/3 "2023-02-01T06:53:15Z")

</div>

yes, i mean runtime fields. my ES version is 7.12.0  
@Christian_Dahlqvist

---

<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:** [February 1, 2023, 6:54am UTC](https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212/4 "2023-02-01T06:54:38Z")

</div>

Runtime fields are calculated at query time and do not add overhead at indexing time. They will add overhead at querying time though.

---

<div class="post-metadata">

**Author:** ![robocon20x](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robocon20x/32/99145_2.png) [@robocon20x](https://discuss.elastic.co/u/robocon20x)\
**Post date:** [February 7, 2023, 9:34am UTC](https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212/5 "2023-02-07T09:34:20Z")

</div>

ok thank you sir.

---

<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:** [March 7, 2023, 9:35am UTC](https://discuss.elastic.co/t/will-attribute-script-make-elasticsearch-write-slower/324212/6 "2023-03-07T09:35:17Z")

</div>

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