<?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 Re: Performance implications of using dual values in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533618#M199315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vadim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your concerned point :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plain Numeric is better than the dual function.&lt;/P&gt;&lt;P&gt;In dual function we first convert our text field to numeric value, which is beneficial for sorting our data accordingly.&lt;/P&gt;&lt;P&gt;But when it comes to performance Plain numeric is better than the dual function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh Rawat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 06:14:27 GMT</pubDate>
    <dc:creator>suresh_rawat</dc:creator>
    <dc:date>2013-12-30T06:14:27Z</dc:date>
    <item>
      <title>Performance implications of using dual values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533614#M199311</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;Assume I have model where transaction table has field OperationType: Sale, Purchase, Transfer and so on.&lt;/P&gt;&lt;P&gt;In general I have three choice:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;fill that field with plain text values ("Sale", "Purchase", "Transfer")&lt;/LI&gt;&lt;LI&gt;fill that field with numeric (integer) values - make that field a key to small dimension table: LOAD INLINE [key, value.. 1, Sale .. 2, Purchase .. 3, Transfer]&lt;/LI&gt;&lt;LI&gt;fill that field with dual values ('Sales',1), ('Purchase',2), ('Transfer',3)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My understanding is that first variant would be the least performant: expression Sum({&amp;lt;OperaionType={'Sale'}&amp;gt;} Amount) woud filter dataset by text value.&lt;/P&gt;&lt;P&gt;In secod variant I may use numeric values in set analysis as in Sum({&amp;lt;OperaionType={1}&amp;gt;} Amount) which woud be as performat as it can be.&lt;/P&gt;&lt;P&gt;In third variant on the surface I have filtering by text in the set analysys formula, Sum({&amp;lt;OperaionType={'Sale'}&amp;gt;} Amount), same as in first variant. But theoretically QlikView engine my under the hood use in filter operations numeric part of the dual values.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So, how dual values perform in set analysis on large datasets? Comparable with plain text values? Comparable with numeric values?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Somewhere in between? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank in andance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 04:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533614#M199311</guid>
      <dc:creator />
      <dc:date>2013-12-30T04:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance implications of using dual values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533615#M199312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My understanding is, set analysis uses some sort of &lt;STRONG&gt;indexing. &lt;/STRONG&gt;If that is the case, searching time for stored vaules would not be different on type(numeric/string) of stored values. But this could effectively matter in a large database in terms of calculation/cpu efficiency in expressions without set analysis where search/sort is required because text sort is always costlier than numeric sort. Apart from these,numeric flagging would be better in terms of memory usage as well because of qlikview's &lt;STRONG&gt;Symbol Tables and Bit Stuffed &lt;/STRONG&gt;Pointers mechanism.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 04:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533615#M199312</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-30T04:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance implications of using dual values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533616#M199313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;My understanding is, set analysis uses some sort of &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;indexing. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If that is the case, searching time stored vaules would not be different on type(numeric/string) of stored values.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So actually I was wrong assuming that set analysis on plain text values would imply some performance penalty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Apart from these,numeric flagging would be better in terms of memory usage as well because of qlikview's &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Symbol Tables and Bit Stuffed &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Pointers mechanism.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably not consider on practice using plain text values in such situation anyway.&lt;/P&gt;&lt;P&gt;My main interest is to understand is there any meaningfull differences between plain numeric and dual values in terms of memory usage, performance and so on. Did for instance plain numeric values make better with respect to &lt;STRONG&gt;S&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ymbol Tables and Bit Stuffed &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Pointers &lt;/STRONG&gt;then dual values on large datasets?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 05:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533616#M199313</guid>
      <dc:creator />
      <dc:date>2013-12-30T05:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performance implications of using dual values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533617#M199314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dual is basically text representation which has a numerical value internally (which could be useful in some scenarios - like, soritng the text in a customized order). So if not necessary, it's not a good idea to &lt;STRONG&gt;overhead &lt;/STRONG&gt;a numeric field with some text (as done in dual). And yes, performance wise a numeric field would be better than a dual (which is overheaded with a text).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 05:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533617#M199314</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-30T05:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance implications of using dual values in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533618#M199315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vadim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your concerned point :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plain Numeric is better than the dual function.&lt;/P&gt;&lt;P&gt;In dual function we first convert our text field to numeric value, which is beneficial for sorting our data accordingly.&lt;/P&gt;&lt;P&gt;But when it comes to performance Plain numeric is better than the dual function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh Rawat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 06:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-implications-of-using-dual-values-in-set-analysis/m-p/533618#M199315</guid>
      <dc:creator>suresh_rawat</dc:creator>
      <dc:date>2013-12-30T06:14:27Z</dc:date>
    </item>
  </channel>
</rss>

