<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Quick Tips #6 - Expressions, comparisons in Scalability</title>
    <link>https://community.qlik.com/t5/Scalability/Quick-Tips-6-Expressions-comparisons/m-p/1490020#M1346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;While we're on the topic of Expression Overview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Do a quick search thru your expressions and count the number of comparisons made. Both if's and set-analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;QlikView compares numbers faster than text. Comparing sum(if(fieldA='1', fieldB)) to sum(if(fieldA=1, fieldB)), the later will be faster. Same goes for set-analysis sum({$&amp;lt;FieldA={1}&amp;gt;} fieldB) is faster than sum({$&amp;lt;FieldA={'1'}&amp;gt;} fieldB).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;From a UI-calculation perspective it's a good idea to create fields at reload time with flags and numeric values for comparisons.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;UI-optimization is all about shaving off cpu-cycles used to calculate and present the objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Cheers from the Scalability Team.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2011 13:18:09 GMT</pubDate>
    <dc:creator>lse</dc:creator>
    <dc:date>2011-06-13T13:18:09Z</dc:date>
    <item>
      <title>Quick Tips #6 - Expressions, comparisons</title>
      <link>https://community.qlik.com/t5/Scalability/Quick-Tips-6-Expressions-comparisons/m-p/1490020#M1346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;While we're on the topic of Expression Overview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Do a quick search thru your expressions and count the number of comparisons made. Both if's and set-analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;QlikView compares numbers faster than text. Comparing sum(if(fieldA='1', fieldB)) to sum(if(fieldA=1, fieldB)), the later will be faster. Same goes for set-analysis sum({$&amp;lt;FieldA={1}&amp;gt;} fieldB) is faster than sum({$&amp;lt;FieldA={'1'}&amp;gt;} fieldB).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;From a UI-calculation perspective it's a good idea to create fields at reload time with flags and numeric values for comparisons.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;UI-optimization is all about shaving off cpu-cycles used to calculate and present the objects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Cheers from the Scalability Team.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 13:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Scalability/Quick-Tips-6-Expressions-comparisons/m-p/1490020#M1346</guid>
      <dc:creator>lse</dc:creator>
      <dc:date>2011-06-13T13:18:09Z</dc:date>
    </item>
  </channel>
</rss>

