<?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: Autonumberhash versus applymap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385279#M697669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't fault your logic so I'd suggest 2 things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Upgrade to v11 asap. In v10 the load process started to utilise multi-threading so the CPU usage will most likely be spread out over multiple cores and could significantly improve things for you.&lt;/P&gt;&lt;P&gt;2. Test on the production servers out of hours!&amp;nbsp; Only way if you don't have similar kit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2013 12:47:34 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2013-01-30T12:47:34Z</dc:date>
    <item>
      <title>Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385276#M697666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a performance issue in our Production environment and have two different options to use, and need to know which one could be best in terms of CPU / memory usage:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Table with more than 40 billion CDRs and around 0.5 billion unique MSISDNs. This table contains around 30 fields, amongst which is this MSISDN field.&lt;/P&gt;&lt;P&gt;2. Each unique MSISDN need to have a calculated field (ID) consisting in a unique ID assigned (e.g. MSISDN +447892128902 =&amp;gt; ID 1, MSISDN +442346566724 =&amp;gt; ID 2, and go on)&lt;/P&gt;&lt;P&gt;3. We see two options to obtain this calculated field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Option 1: apply a AutoNumberHash to each MSISDN while loading the 40 billion CDRs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Option 2: create a mapping table with all distinct MSISDNs + a RowNo() field first. When loading the 40 billion CDRs, apply a map to MSISDN to get the resulting RowNo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a clue on what could use less CPU / Memory resources, a Autonumberhash for 40 billion records, or a lookup to a 0.5 billion records mapping table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 12:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385276#M697666</guid>
      <dc:creator />
      <dc:date>2013-01-30T12:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385277#M697667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to say without looking at the script.&amp;nbsp; My suspicion would be ApplyMap() would be considerably faster in the final load but of course you have to take into account the step to generate the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of CPU/RAM usage in the final application, they won't be any different as they are both using an integer key. The difference between the method will be in the load times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 12:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385277#M697667</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-01-30T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385278#M697668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to say... the performance issue is only in the QV Publisher Server side, relative to the loading process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prod server is 16 core CPU and 192 GB, and in the past we found that when the load process uses all the RAM available, the loading process fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView version is v9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theorically, Option 1 (AutoNumberHash) could be more CPU consuming, while Option 2 (ApplyMap) could be more RAM consuming, assuming that all the Mapping table with up to 0.5 billion records needs to be loaded in memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our test server is quite limited and the dummy files we got are not big enough to get confirmation of the above though. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 12:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385278#M697668</guid>
      <dc:creator />
      <dc:date>2013-01-30T12:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385279#M697669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't fault your logic so I'd suggest 2 things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Upgrade to v11 asap. In v10 the load process started to utilise multi-threading so the CPU usage will most likely be spread out over multiple cores and could significantly improve things for you.&lt;/P&gt;&lt;P&gt;2. Test on the production servers out of hours!&amp;nbsp; Only way if you don't have similar kit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 12:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385279#M697669</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-01-30T12:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385280#M697670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We wish it were so simple but the client does not want to upgrade to QV10/11 for budget reasons, and we don't have access to Production at all. So our only option is do our best guess on what will have a minor impact on performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 15:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385280#M697670</guid>
      <dc:creator />
      <dc:date>2013-01-30T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385281#M697671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then it is indeed a case of trial and measure!&amp;nbsp; Personally, I love ApplyMap() - or even better, MAP USING (if possible).&amp;nbsp; Other options are a LEFT JOIN with field dropping and renaming. For large data sets I have found this works extremely quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 15:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385281#M697671</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-01-30T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385282#M697672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most importantly, you dont need autonumberHash() just the autonumber() function. No need to incur the extra CPU of doing the Hash. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 22:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385282#M697672</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-01-30T22:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Autonumberhash versus applymap</title>
      <link>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385283#M697673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Missed that one Rob - cheers! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 10:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Autonumberhash-versus-applymap/m-p/385283#M697673</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2013-01-31T10:11:25Z</dc:date>
    </item>
  </channel>
</rss>

