# Which method is more efficient when creating tags for my UDT

**URL:** <https://forum.inductiveautomation.com/t/which-method-is-more-efficient-when-creating-tags-for-my-udt/78976>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [September 11, 2023, 9:12pm UTC](https://forum.inductiveautomation.com/t/which-method-is-more-efficient-when-creating-tags-for-my-udt/78976 "2023-09-11T21:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shawn\_Rieger](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn_rieger/32/46336_2.png) [@Shawn\_Rieger](https://forum.inductiveautomation.com/u/Shawn_Rieger)\
**Post date:** [September 11, 2023, 9:12pm UTC](https://forum.inductiveautomation.com/t/which-method-is-more-efficient-when-creating-tags-for-my-udt/78976/1 "2023-09-11T21:12:27Z")

</div>

I'm creating a UDT to create tags based on EAM edge system (master/backup) tags. Since I can't seem to put a template in a template when using an expression, i.e. `{[system]path/to/{sitename}/tag}` - I started using reference tags for memory and CPU on each node, and then an expression tag to get the max of the two. I also realized I could create a single tag using something like this:

`max(tag('[System]Gateway/EAM/Agents/'+{site}+'/Master/Metrics/System/CPU Usage.value'), tag('[System]Gateway/EAM/Agents/'+{site}+'/Master/Metrics/System/CPU Usage.value'))`

However, I'm concerned about resources and what to keep this as light as possible. Is it better to create three tags, two references, and one expression or a single expression using the max() and tag() functions?
