# Best Approach for Calculating a Running 5-Minute Average for 100K Tags

**URL:** <https://forum.inductiveautomation.com/t/best-approach-for-calculating-a-running-5-minute-average-for-100k-tags/102880>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [February 26, 2025, 7:15am UTC](https://forum.inductiveautomation.com/t/best-approach-for-calculating-a-running-5-minute-average-for-100k-tags/102880 "2025-02-26T07:15:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [February 26, 2025, 2:38pm UTC](https://forum.inductiveautomation.com/t/best-approach-for-calculating-a-running-5-minute-average-for-100k-tags/102880/3 "2025-02-26T14:38:55Z")

</div>

I'll add option #4.  
Use a java concurrent queue: [Java concurrent queue for tag change scripts](https://forum.inductiveautomation.com/t/java-concurrent-queue-for-tag-change-scripts/82044) rather than doing the calculation on the tag change script.

---

_[View the full topic](https://forum.inductiveautomation.com/t/best-approach-for-calculating-a-running-5-minute-average-for-100k-tags/102880)._
