<?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: Loading records from MySql is not working with limit greaterthan 9000 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197623#M627429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I know, Marcus didn't propose me to load one record at a time. But Based on my Ideology, I worked in this way. And I am sorry for not providing the details because I am not working anymore on that project. I hope you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that's a good idea of loading the data by grouping. I will try this with my samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 05:19:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-16T05:19:31Z</dc:date>
    <item>
      <title>Loading records from MySql is not working with limit greaterthan 9000</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197618#M627424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some tables MySql DB that has more than 7 million records. When I tried to load records (as Select * from Table;) with no limits, it is not even starting the execution (It just says connected to DB and freezes out even after one hour). And if I give limit as 9000 then it works perfectly fine. I am not able to understand where the problem is. And I asked DB team to check the Indexes of table. They said everything is fine on their side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one please help me with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 14:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197618#M627424</guid>
      <dc:creator />
      <dc:date>2016-10-27T14:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loading records from MySql is not working with limit greaterthan 9000</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197619#M627425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there aren't enough ressources on your or the database-side and/or there might be also any issues with the driver. Beside them you could try to load all data within a loop over a certain criteria maybe year or company or similar and store them as qvd - and afterwards you could apply an incremental approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 12:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197619#M627425</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-11-07T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loading records from MySql is not working with limit greaterthan 9000</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197620#M627426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply Marcus, I tried to load the records within a loop script. The Loop script I used is similar to the below one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count:&lt;/P&gt;&lt;P&gt;SQL SELECT count(*) as Tot_Rows,&lt;/P&gt;&lt;P&gt;max(EMPLOYEE_ID) as Max_ID&lt;/P&gt;&lt;P&gt;FROM HR.EMPLOYEES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMax = Peek('TOT_ROWS',0,'Count');&lt;/P&gt;&lt;P&gt;LET vExit_Loop = Peek('MAX_ID',0,'Count');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Drop Table Count;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = 0 to $(vMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR:&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM HR.EMPLOYEES WHERE EMPLOYEE_ID=100 + ($(i)*2);&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM HR.EMPLOYEES WHERE EMPLOYEE_ID=100 + ($(i)*2+1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT FOR WHEN ($(i)*2) = $(vExit_Loop)&lt;/P&gt;&lt;P&gt;NEXT i;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this script is taking very long time to execute as it is loading single record every time.&lt;/P&gt;&lt;P&gt;Could you please suggest me some better ideas in implementing this load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, my exit statement is not working &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;EXIT FOR WHEN ($(i)*2) = $(vExit_Loop)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me what is wrong in it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 04:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197620#M627426</guid>
      <dc:creator />
      <dc:date>2016-11-16T04:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading records from MySql is not working with limit greaterthan 9000</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197621#M627427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think that Marcus was proposing you load the data one record at a time - as you noticed, that is extremely slow. Use some grouping like Month. You have not provided any details of your data, os we cannot make detailed suggestions, but analyse your data looking for some grouping to break the data into smaller chunks (Month, Department, Region, EmployeeType, ....)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 05:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197621#M627427</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-16T05:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loading records from MySql is not working with limit greaterthan 9000</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197622#M627428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT count(*) as &lt;STRONG&gt;Tot_Rows&lt;/STRONG&gt;,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;max(EMPLOYEE_ID) as &lt;STRONG&gt;Max_ID&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;FROM HR.EMPLOYEES;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;LET vMax = Peek('&lt;STRONG&gt;TOT_ROWS&lt;/STRONG&gt;',0,'Count');&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;LET vExit_Loop = Peek('&lt;STRONG&gt;MAX_ID&lt;/STRONG&gt;',0,'Count');&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Note that QV field names and variable are case sensitive, so vMax and vExit_Loop will both be null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 05:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197622#M627428</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-16T05:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Loading records from MySql is not working with limit greaterthan 9000</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197623#M627429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I know, Marcus didn't propose me to load one record at a time. But Based on my Ideology, I worked in this way. And I am sorry for not providing the details because I am not working anymore on that project. I hope you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that's a good idea of loading the data by grouping. I will try this with my samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 05:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197623#M627429</guid>
      <dc:creator />
      <dc:date>2016-11-16T05:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loading records from MySql is not working with limit greaterthan 9000</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197624#M627430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan. I got the mistake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 05:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-records-from-MySql-is-not-working-with-limit-greaterthan/m-p/1197624#M627430</guid>
      <dc:creator />
      <dc:date>2016-11-16T05:22:31Z</dc:date>
    </item>
  </channel>
</rss>

