# Caching of runtime mappings

**URL:** <https://discuss.elastic.co/t/caching-of-runtime-mappings/370185>\
**Category:** Elasticsearch\
**Tags:** painless, runtime-fields\
**Created:** [November 7, 2024, 9:34pm UTC](https://discuss.elastic.co/t/caching-of-runtime-mappings/370185 "2024-11-07T21:34:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicole.oresme](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicole.oresme/32/108046_2.png) [@nicole.oresme](https://discuss.elastic.co/u/nicole.oresme)\
**Post date:** [November 7, 2024, 9:34pm UTC](https://discuss.elastic.co/t/caching-of-runtime-mappings/370185/1 "2024-11-07T21:34:02Z")

</div>

Does anyone know when the results of runtime mappings are cached?

I've seen instances where my first run takes 10s of seconds, but my second is near instant - so they are clearly being cached sometimes.

But then I do what I think is the same thing elsewhere, and it's the same 10s of seconds every time.

Is there anything predictable about this caching?
