<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>which is Efficient way</title><link>https://community.appian.com/discussions/f/best-practices/37960/which-is-efficient-way</link><description>for explaining sake im using this examples 
 Let&amp;#39;s say 
 
 local!role : index( local!lookupDetails, wherecontains( cons!IHL_TXT_R_ALL_CATEGORIES[1], index( local!lookupDetails, &amp;quot;role&amp;quot; null ) ) ) 
 i need to use one values from the record in my UI many</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142770?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 14:02:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a14ac94-4c6a-4969-9d91-4c9d654c6d04</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sure, but you can also just pass the rule input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142768?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 13:51:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cf971e6-f1c3-401f-bf72-4a3cd3ebd533</guid><dc:creator>Dinesh Arumugam</dc:creator><description>&lt;p&gt;im storing it to pass in multiple places in my UI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142764?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 13:31:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:00e05791-f528-41e3-bcf1-9fb34fe918c6</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Storing a rule input value into a local for no specific purpose makes no sense and is not required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142761?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 12:20:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fa08d9c-6901-4372-b3a4-07ecdbd87848</guid><dc:creator>Dinesh Arumugam</dc:creator><description>&lt;p&gt;it is coming form&amp;nbsp;RI as a record type&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142760?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 12:18:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21727e37-4f08-4dfa-b4a9-91db8da22349</guid><dc:creator>Dinesh Arumugam</dc:creator><description>&lt;div class="content full threaded-reply-content user-defined-markup" data-replyid="142759" data-userid="289184" data-permalink="~/discussions/f/best-practices/37960/which-is-efficient-way/142759"&gt;
&lt;div class="content"&gt;
&lt;p&gt;&lt;span&gt;compute means - doing some operations and getting some value&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;yes we use the first approach, but it consume memory right ,that why i raised this question&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142757?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 11:59:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb1b49b4-be63-4e77-bf19-ee9e76263029</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Well, a value that is not computed is a static value. If this is needed in multiple places, creating a constant for it might be a good idea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142756?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 11:51:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05e6e9f-5d96-4f9a-b341-dd9170d12705</guid><dc:creator>venkatrea696188</dc:creator><description>[quote userid="289184" url="~/discussions/f/best-practices/37960/which-is-efficient-way"]if so i need to call index,whereconains in many places right dont it consume memory[/quote]
&lt;p&gt;This what compute means in your case. We generally go with first approach it&amp;#39;s&amp;nbsp;best practice not only in Appian but in other coding languages too&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142755?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 11:40:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:390895fe-d71d-4161-bc2a-953878df85b9</guid><dc:creator>Dinesh Arumugam</dc:creator><description>&lt;p&gt;if no need of&amp;nbsp;&lt;span&gt;compute ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which is Efficient way</title><link>https://community.appian.com/thread/142752?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 11:33:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d54da5bf-6aad-4767-827e-14d81b897a61</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;If I need a computed value multiple times, I use local variables to reduce the evaluation time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>