<?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 Performance issue while looking up data by primary key in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Performance-issue-while-looking-up-data-by-primary-key/m-p/1552604#M62858</link>
    <description>&lt;P&gt;I have a very simple Qlik model consisting of one table. This table has around 50 fields. The primary key field is a productId field which is a number. There are 50Million records in the table.&lt;/P&gt;&lt;P&gt;In a sheet, we have a regular straight table which has the productId field as one of the columns.&lt;/P&gt;&lt;P&gt;The user wants to look up using the productId field. We allow the user to enter a list of product ids (space separated) using an input box mapped to a variable vProductKey.&lt;/P&gt;&lt;P&gt;We then define a variable vProdString as follows:&lt;/P&gt;&lt;P&gt;If(Len(Trim(vProductKey)) &amp;gt; 0,&amp;nbsp;&lt;BR /&gt;replace((vProductKey), ' ', '","'),&lt;BR /&gt;'*'&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;And then we use vProdString in the SetAnalysis as follows:&lt;/P&gt;&lt;P&gt;Only({&amp;lt;[Product Id] = {"$(=$(vProdString))"}&amp;gt;}[Key Type])&lt;/P&gt;&lt;P&gt;The performance is pretty bad even when using 20 search values in the input box. Is it because we are searching on the primary Key field?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Feb2018 patch3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 07:50:46 GMT</pubDate>
    <dc:creator>mborsadw</dc:creator>
    <dc:date>2021-04-02T07:50:46Z</dc:date>
    <item>
      <title>Performance issue while looking up data by primary key</title>
      <link>https://community.qlik.com/t5/App-Development/Performance-issue-while-looking-up-data-by-primary-key/m-p/1552604#M62858</link>
      <description>&lt;P&gt;I have a very simple Qlik model consisting of one table. This table has around 50 fields. The primary key field is a productId field which is a number. There are 50Million records in the table.&lt;/P&gt;&lt;P&gt;In a sheet, we have a regular straight table which has the productId field as one of the columns.&lt;/P&gt;&lt;P&gt;The user wants to look up using the productId field. We allow the user to enter a list of product ids (space separated) using an input box mapped to a variable vProductKey.&lt;/P&gt;&lt;P&gt;We then define a variable vProdString as follows:&lt;/P&gt;&lt;P&gt;If(Len(Trim(vProductKey)) &amp;gt; 0,&amp;nbsp;&lt;BR /&gt;replace((vProductKey), ' ', '","'),&lt;BR /&gt;'*'&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;And then we use vProdString in the SetAnalysis as follows:&lt;/P&gt;&lt;P&gt;Only({&amp;lt;[Product Id] = {"$(=$(vProdString))"}&amp;gt;}[Key Type])&lt;/P&gt;&lt;P&gt;The performance is pretty bad even when using 20 search values in the input box. Is it because we are searching on the primary Key field?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using Feb2018 patch3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Performance-issue-while-looking-up-data-by-primary-key/m-p/1552604#M62858</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2021-04-02T07:50:46Z</dc:date>
    </item>
  </channel>
</rss>

