<?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: Best way to parse key/value table efficiently in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229456#M23987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect.&amp;nbsp; Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 18:03:15 GMT</pubDate>
    <dc:creator>flottmen</dc:creator>
    <dc:date>2017-02-07T18:03:15Z</dc:date>
    <item>
      <title>Best way to parse key/value table efficiently</title>
      <link>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229454#M23985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Qlik and have a question about a table I am trying to parse through.&amp;nbsp; Our production data base has a Key/Value table with the following structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Id,&lt;/P&gt;&lt;P&gt;Category,&lt;/P&gt;&lt;P&gt;DateEntered,&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to extract some (20) of the key value pairs (based on name) so that I can join them to the rest of the data set on their Id.&amp;nbsp; There are about 80 million rows in this key/value table and I need the transformation to happen very efficiently.&amp;nbsp; I am already taking the table as is (no transformations) and saving it as a QVD.&amp;nbsp; I am also using an incremental load to keep this table up to date.&amp;nbsp; I intend to do this transformation incrementally as well.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: what is the most efficient way to parse through this data set?&amp;nbsp; My first attempt at this pulls the ids from another table (where they are the primary key) and then joining the key/value table one key at a time.&amp;nbsp; However, this isn't very fast.&amp;nbsp; Is there a more efficent way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample of my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KeyValueParse:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id&lt;/P&gt;&lt;P&gt;FROM Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (KeyValueParse)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM Table2&lt;/P&gt;&lt;P&gt;WHERE Name = 'IPAddress';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;JOIN (KeyValueParse)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM Table2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE Name = 'FirstName';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The output table should look like:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Id,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Value as IPAddress,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Value AS FirstName&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;I was thinking perhaps I could pivot the data in the script but the searching I have done says that isnt an option.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229454#M23985</guid>
      <dc:creator>flottmen</dc:creator>
      <dc:date>2017-02-07T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to parse key/value table efficiently</title>
      <link>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229455#M23986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a &lt;A href="https://community.qlik.com/qlik-blogpost/3629"&gt;The Generic Load&lt;/A&gt; or use For loop to do this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229455#M23986</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-07T17:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to parse key/value table efficiently</title>
      <link>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229456#M23987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect.&amp;nbsp; Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 18:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229456#M23987</guid>
      <dc:creator>flottmen</dc:creator>
      <dc:date>2017-02-07T18:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to parse key/value table efficiently</title>
      <link>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229457#M23988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there best practices for an Incremental Generic Load?&amp;nbsp; The generic table I am loading from has a date stamp and about 80 million rows.&amp;nbsp; I am hoping to make this as fast loading as possible.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229457#M23988</guid>
      <dc:creator>flottmen</dc:creator>
      <dc:date>2017-02-16T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to parse key/value table efficiently</title>
      <link>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229458#M23989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never done that before, but I think it should be same as any other incremental load. grab new data and use generic load to assign them to their new buckets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Best-way-to-parse-key-value-table-efficiently/m-p/1229458#M23989</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-16T20:35:21Z</dc:date>
    </item>
  </channel>
</rss>

