<?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 Loading from QVD takes long time with WHERE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163570#M36630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;can you reply me with the syntax I should use in my script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 10:00:03 GMT</pubDate>
    <dc:creator>david_ze</dc:creator>
    <dc:date>2011-03-16T10:00:03Z</dc:date>
    <item>
      <title>Loading from QVD takes long time with WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163567#M36627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm loading data from QVD file (300M recs) and using WHERE in the load statment:&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;Params:&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;&lt;B&gt;load&lt;/B&gt;&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;event_id as id,&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;"param_name",&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;"param_value"&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;FROM event_params.qvd&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;(qvd) WHERE event_id&amp;gt;=&lt;B&gt;&lt;I&gt;$(vMin_id)&lt;/I&gt;&lt;/B&gt; and event_id&amp;lt;=&lt;B&gt;&lt;I&gt;$(vMax_id)&lt;/I&gt;&lt;/B&gt;;&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;can someone advice me why it take so long to load the data? is it something I should change in the load script?&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;Will appreciate your help.&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;Thanks,&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;David&lt;/P&gt;&lt;P style="text-align: left; line-height: normal; margin: 0cm 0cm 0pt; unicode-bidi: embed; direction: ltr; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 09:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163567#M36627</guid>
      <dc:creator>david_ze</dc:creator>
      <dc:date>2011-03-16T09:40:06Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD takes long time with WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163568#M36628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;The 'where' clause on a QVD affects optimisation.&lt;/P&gt;&lt;P&gt;Try loading the QVD completely (so that it is optimised) and then apply the 'where' to the resultant table.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 09:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163568#M36628</guid>
      <dc:creator />
      <dc:date>2011-03-16T09:48:54Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD takes long time with WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163569#M36629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is one exception, and that is the EXISTS function. You can have an optimized load with a WHERE EXISTS or WHERE NOT EXISTS clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 09:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163569#M36629</guid>
      <dc:creator />
      <dc:date>2011-03-16T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD takes long time with WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163570#M36630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;can you reply me with the syntax I should use in my script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 10:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163570#M36630</guid>
      <dc:creator>david_ze</dc:creator>
      <dc:date>2011-03-16T10:00:03Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD takes long time with WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163571#M36631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by using incramental load&lt;/P&gt;&lt;P&gt;you can use "where" only on the delta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 10:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163571#M36631</guid>
      <dc:creator />
      <dc:date>2011-03-16T10:08:36Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD takes long time with WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163572#M36632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;tParams:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;event_id,&lt;/P&gt;&lt;P&gt;"param_name",&lt;/P&gt;&lt;P&gt;"param_value"&lt;/P&gt;&lt;P&gt;FROM event_params.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Params:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;event_id as id,&lt;/P&gt;&lt;P&gt;"param_name",&lt;/P&gt;&lt;P&gt;"param_value"&lt;/P&gt;&lt;P&gt;resident tParams&lt;/P&gt;&lt;P&gt;WHERE event_id&amp;gt;=$(vMin_id) and event_id&amp;lt;=$(vMax_id);&lt;/P&gt;&lt;P&gt;drop table tParams;&lt;/P&gt;&lt;P&gt;Note that as event_id is renames as id in table Params then the data will not be concatenated with table tParams.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 10:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163572#M36632</guid>
      <dc:creator />
      <dc:date>2011-03-16T10:09:55Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD takes long time with WHERE</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163573#M36633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you already have the IDs that you need to load in a field [id], you can modify your WHERE clause to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;WHERE EXISTS(id,event_id)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;...this way you don't need the variables and you keep the optimized load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 10:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-takes-long-time-with-WHERE/m-p/163573#M36633</guid>
      <dc:creator />
      <dc:date>2011-03-16T10:20:26Z</dc:date>
    </item>
  </channel>
</rss>

