<?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 Direct Query issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Direct-Query-issue/m-p/1058366#M354631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm connecting qlik to a 50B table using the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DIRECT QUERY &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DIMENSION &lt;/P&gt;&lt;P&gt;CustomerID, &lt;/P&gt;&lt;P&gt;OrderDate,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;MEASURE &lt;/P&gt;&lt;P&gt;Revenue,&lt;/P&gt;&lt;P&gt;ItemsQTY,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM DB.Table; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the UI everything is working perfect.&lt;/P&gt;&lt;P&gt;The problem is that every time I reload my model it queries "DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CustomerID" and "DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;OrderDate", this takes a very long time and kills the DB&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can prevent qlik of doing this and feed it with the distinct CustomerID from a different table (we have only 10M customers not 50B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or reload the increment distinct customers (say from the last 2 days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jan 2016 19:08:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-10T19:08:10Z</dc:date>
    <item>
      <title>Direct Query issue</title>
      <link>https://community.qlik.com/t5/QlikView/Direct-Query-issue/m-p/1058366#M354631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm connecting qlik to a 50B table using the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DIRECT QUERY &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DIMENSION &lt;/P&gt;&lt;P&gt;CustomerID, &lt;/P&gt;&lt;P&gt;OrderDate,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;MEASURE &lt;/P&gt;&lt;P&gt;Revenue,&lt;/P&gt;&lt;P&gt;ItemsQTY,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FROM DB.Table; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the UI everything is working perfect.&lt;/P&gt;&lt;P&gt;The problem is that every time I reload my model it queries "DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CustomerID" and "DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;OrderDate", this takes a very long time and kills the DB&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can prevent qlik of doing this and feed it with the distinct CustomerID from a different table (we have only 10M customers not 50B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or reload the increment distinct customers (say from the last 2 days)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 19:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Direct-Query-issue/m-p/1058366#M354631</guid>
      <dc:creator />
      <dc:date>2016-01-10T19:08:10Z</dc:date>
    </item>
  </channel>
</rss>

