<?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 Extreme slowness on a very basic load statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extreme-slowness-on-a-very-basic-load-statement/m-p/400488#M698066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got the following SQL query, repeated three times (to get results from three different databases):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT "vchPlatform_Serial_Number", "datCreate_Date", intPlatform_Status_ID&lt;/P&gt;&lt;P&gt;FROM "myDataBase".dbo."Platform_Ta";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This runs without any problems and gets roughly 10k rows from each database, taking under a second to run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I place the following load:&lt;/P&gt;&lt;P&gt;LOAD "vchPlatform_Serial_Number", DayName("datCreate_Date") as Pallet_Create_Date, intPlatform_Status_ID ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it takes about 30 seconds each to run, and eats up the entire server's CPU resources during that time span, with the same result if I load from all three tables first, and then run that load on the resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the quirky part - if I change that load statement at all, it runs quickly and correctly (again under one second), e.g. &lt;/P&gt;&lt;P&gt;LOAD "vchPlatform_Serial_Number", '&lt;STRONG&gt;1' as myField&lt;/STRONG&gt;, DayName("datCreate_Date") as Pallet_Create_Date, intPlatform_Status_ID &lt;/P&gt;&lt;P&gt; This is an acceptable workaround, but I was wondering if anyone could venture a guess as to why QV is hanging up on the original load statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[edited to add]&lt;/P&gt;&lt;P&gt;Curiously, if I put the new field at the end of the load statement, it doesn't help any - it only seems to work if it's placed before the date column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2013 15:50:00 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2013-02-04T15:50:00Z</dc:date>
    <item>
      <title>Extreme slowness on a very basic load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Extreme-slowness-on-a-very-basic-load-statement/m-p/400488#M698066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got the following SQL query, repeated three times (to get results from three different databases):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT "vchPlatform_Serial_Number", "datCreate_Date", intPlatform_Status_ID&lt;/P&gt;&lt;P&gt;FROM "myDataBase".dbo."Platform_Ta";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This runs without any problems and gets roughly 10k rows from each database, taking under a second to run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I place the following load:&lt;/P&gt;&lt;P&gt;LOAD "vchPlatform_Serial_Number", DayName("datCreate_Date") as Pallet_Create_Date, intPlatform_Status_ID ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it takes about 30 seconds each to run, and eats up the entire server's CPU resources during that time span, with the same result if I load from all three tables first, and then run that load on the resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the quirky part - if I change that load statement at all, it runs quickly and correctly (again under one second), e.g. &lt;/P&gt;&lt;P&gt;LOAD "vchPlatform_Serial_Number", '&lt;STRONG&gt;1' as myField&lt;/STRONG&gt;, DayName("datCreate_Date") as Pallet_Create_Date, intPlatform_Status_ID &lt;/P&gt;&lt;P&gt; This is an acceptable workaround, but I was wondering if anyone could venture a guess as to why QV is hanging up on the original load statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[edited to add]&lt;/P&gt;&lt;P&gt;Curiously, if I put the new field at the end of the load statement, it doesn't help any - it only seems to work if it's placed before the date column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 15:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extreme-slowness-on-a-very-basic-load-statement/m-p/400488#M698066</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2013-02-04T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extreme slowness on a very basic load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Extreme-slowness-on-a-very-basic-load-statement/m-p/400489#M698067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick bump to see if anyone has any ideas before I write this off as a QlikView quirk and move on.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 07:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extreme-slowness-on-a-very-basic-load-statement/m-p/400489#M698067</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2013-02-06T07:23:39Z</dc:date>
    </item>
  </channel>
</rss>

