# "Latest" transform new feature - does it reduce load compared to a scripted metric?

**URL:** <https://discuss.elastic.co/t/latest-transform-new-feature-does-it-reduce-load-compared-to-a-scripted-metric/274888>\
**Category:** Elasticsearch\
**Tags:** transforms\
**Created:** [June 3, 2021, 2:03pm UTC](https://discuss.elastic.co/t/latest-transform-new-feature-does-it-reduce-load-compared-to-a-scripted-metric/274888 "2021-06-03T14:03:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Duncan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_duncan/32/46467_2.png) [@Mark\_Duncan](https://discuss.elastic.co/u/Mark_Duncan)\
**Post date:** [June 3, 2021, 2:03pm UTC](https://discuss.elastic.co/t/latest-transform-new-feature-does-it-reduce-load-compared-to-a-scripted-metric/274888/1 "2021-06-03T14:03:54Z")

</div>

I have been making use of scripted metrics to find the latest document inside a traditional transform.

The new "Latest" document transform offering works to work really well and is dead simple to use!

Question - would the "latest" transform running with high frequency, every 1s, cause reduced load on the cluster compared to using scripted metric in a normal transform? I would expect it has been designed to, but would be great to hear from the Elastic team on this one.

Thanks in advance.  
Mark

---

<div class="post-metadata">

**Author:** ![BenTrent](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bentrent/32/33915_2.png) [@BenTrent](https://discuss.elastic.co/u/BenTrent)\
**Post date:** [June 7, 2021, 11:12am UTC](https://discuss.elastic.co/t/latest-transform-new-feature-does-it-reduce-load-compared-to-a-scripted-metric/274888/2 "2021-06-07T11:12:15Z")

</div>

If your original transform was using a similar frequency, then yes, `latest` will be much more performant and reduce load on the cluster.

---

<div class="post-metadata">

**Author:** ![Mark\_Duncan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_duncan/32/46467_2.png) [@Mark\_Duncan](https://discuss.elastic.co/u/Mark_Duncan)\
**Post date:** [June 7, 2021, 1:20pm UTC](https://discuss.elastic.co/t/latest-transform-new-feature-does-it-reduce-load-compared-to-a-scripted-metric/274888/3 "2021-06-07T13:20:28Z")

</div>

cheers @BenTrent 😃

---

<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 5, 2021, 1:21pm UTC](https://discuss.elastic.co/t/latest-transform-new-feature-does-it-reduce-load-compared-to-a-scripted-metric/274888/4 "2021-07-05T13:21:26Z")

</div>

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