# Will Increasing the setting script.max\_compilations\_rate from 75/5m to 300/m effect perfomance?

**URL:** <https://discuss.elastic.co/t/will-increasing-the-setting-script-max-compilations-rate-from-75-5m-to-300-m-effect-perfomance/240781>\
**Category:** Elasticsearch\
**Created:** [July 11, 2020, 6:22am UTC](https://discuss.elastic.co/t/will-increasing-the-setting-script-max-compilations-rate-from-75-5m-to-300-m-effect-perfomance/240781 "2020-07-11T06:22:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sravanti](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@Sravanti](https://discuss.elastic.co/u/Sravanti)\
**Post date:** [July 11, 2020, 6:22am UTC](https://discuss.elastic.co/t/will-increasing-the-setting-script-max-compilations-rate-from-75-5m-to-300-m-effect-perfomance/240781/1 "2020-07-11T06:22:47Z")

</div>

I'm getting remote transport exception while executing painless scripts. Need to know if it will really effect performance, if we increase from its actual limit i.e 75/5m to 200-300/1m.

if not, is there any alternative wayto avoid this exception?

Can stored scripts help for this case?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [July 12, 2020, 7:19pm UTC](https://discuss.elastic.co/t/will-increasing-the-setting-script-max-compilations-rate-from-75-5m-to-300-m-effect-perfomance/240781/2 "2020-07-12T19:19:07Z")

</div>

That setting is just to general the warning. So bumping it won't slow things down.

That warning is _generally_ a sign that you are doing too many script compilations and should use script parameters more carefully. Script compilations is much slower than using a cached script. But if you know you need the scripts don't worry too much about bumping the setting.

But I would double check if you can reuse scripts better. It really does slow things down a lot to have to compile over and over again.

---

<div class="post-metadata">

**Author:** ![Sravanti](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@Sravanti](https://discuss.elastic.co/u/Sravanti)\
**Post date:** [July 13, 2020, 9:45am UTC](https://discuss.elastic.co/t/will-increasing-the-setting-script-max-compilations-rate-from-75-5m-to-300-m-effect-perfomance/240781/3 "2020-07-13T09:45:13Z")

</div>

Is cached script and stored script same?

by using stored script, will it solve circuit breaking exception?

---

<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:** [August 10, 2020, 9:45am UTC](https://discuss.elastic.co/t/will-increasing-the-setting-script-max-compilations-rate-from-75-5m-to-300-m-effect-perfomance/240781/4 "2020-08-10T09:45:17Z")

</div>

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