<?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 Set Analysis performance: Are numeric filters faster than string based filters? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-performance-Are-numeric-filters-faster-than-string/m-p/91039#M6071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the old versions of Qlik I read somewhere that numeric values are faster to process than string based.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the case for Set Analysis too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say you have an expression like SUM({&amp;lt;CarStatus={"Sold"}&amp;gt;}CarSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it better to replace the Sold with 1 or some value associated with the string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above example is quite simple but if you imagine a complex app where there are multiple filters in set analysis, and you want to improve the performance I was wondering if something like this is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would the performance of Set Analysis be better doing a change like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 13:24:36 GMT</pubDate>
    <dc:creator>mwallman</dc:creator>
    <dc:date>2018-07-16T13:24:36Z</dc:date>
    <item>
      <title>Set Analysis performance: Are numeric filters faster than string based filters?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-performance-Are-numeric-filters-faster-than-string/m-p/91039#M6071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the old versions of Qlik I read somewhere that numeric values are faster to process than string based.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the case for Set Analysis too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say you have an expression like SUM({&amp;lt;CarStatus={"Sold"}&amp;gt;}CarSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it better to replace the Sold with 1 or some value associated with the string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above example is quite simple but if you imagine a complex app where there are multiple filters in set analysis, and you want to improve the performance I was wondering if something like this is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would the performance of Set Analysis be better doing a change like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-performance-Are-numeric-filters-faster-than-string/m-p/91039#M6071</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-07-16T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis performance: Are numeric filters faster than string based filters?</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-performance-Are-numeric-filters-faster-than-string/m-p/91040#M6072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on testing in QlikView (10,000,000 row of data), it seems that there might be a very very small advantage of using number vs text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(CarStatus = 'Sold', 1, 0) as CarStatusNum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD RecNo() as Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ceil(Rand() * 100) * 100 as CarSales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Rand() &amp;lt; 0.5, 'Sold', 'Not Sold') as CarStatus&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 10000000;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 13:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-performance-Are-numeric-filters-faster-than-string/m-p/91040#M6072</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-16T13:49:12Z</dc:date>
    </item>
  </channel>
</rss>

