<?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: Load table from Mysql in parts in SQL SELECT in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806654#M65619</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49457"&gt;@Dalton_Ruer&lt;/a&gt;&amp;nbsp;oh, wait, you mean create a qvd with only MyTableKeys and inner join it with the above? &lt;STRONG&gt;Was it so simple?!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;Is that okay with the transactional data though? Doesn't this mean it will only get stored just once so if a deletion happens in data loaded after the qvd's creation will not get affected or recognized as deletion? Why Qlik Help proposes then reading straight from the db?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So many questions.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; Thank you in advance for your time&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49457"&gt;@Dalton_Ruer&lt;/a&gt;&amp;nbsp;, I so enjoy learning.&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 14:32:18 GMT</pubDate>
    <dc:creator>ioannagr</dc:creator>
    <dc:date>2021-05-10T14:32:18Z</dc:date>
    <item>
      <title>Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806536#M65599</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I was thinking to load data from a very big table from MySql db in parts in SELECT part.&lt;/P&gt;&lt;P&gt;So I have&lt;/P&gt;&lt;P&gt;LOAD pk from Table1;&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;LOAD pk as pk;&lt;/P&gt;&lt;P&gt;SQL SELECT pk, year from Table2&lt;/P&gt;&lt;P&gt;where year='2020'&lt;/P&gt;&lt;P&gt;UNION ALL&lt;/P&gt;&lt;P&gt;SELECT pk, year from Table2&lt;/P&gt;&lt;P&gt;where year='2021';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would something like that work? How do i do it with a loop in the SQL SELECT part?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 09:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806536#M65599</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-05-10T09:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806624#M65608</link>
      <description>&lt;P&gt;Not sure what you are trying to accomplish by not just selecting everything from table 2 in a single query.&amp;nbsp; By doing a UNION ALL you are still going to build a giant result set on the MYSQL side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are trying to save processing in MySQL you could bring the data back in sets and concatenate the data inside of Qlik Sense instead.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 13:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806624#M65608</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2021-05-10T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806632#M65610</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49457"&gt;@Dalton_Ruer&lt;/a&gt;&amp;nbsp; this table is a billion rows. I want to do hard delete incremental load, which by following Qlik Help routine, (&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/LoadData/use-QVD-files-incremental-load.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/LoadData/use-QVD-files-incremental-load.htm&lt;/A&gt;) involves an inner join with the initial table calling it from the database straight.&lt;/P&gt;&lt;P&gt;I have figured out a way by splitting the tables of interest by years in qvds&amp;nbsp; for an initial load, but the hard delete routine calls for calling the table once more straight from the database and I have NO clue how to make it speedier. I'm looking into it for days, the load time is days... incremental load goes to waste.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 13:42:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806632#M65610</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-05-10T13:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806647#M65616</link>
      <description>&lt;P&gt;Gotcha. Incremental Load makes a lot of sense but Qlik doesn't have a UNION ALL which is why I thought you were doing that in MYSQL. I understand your confusion and will go through what the post meant by INNER JOIN&lt;/P&gt;&lt;P&gt;If you already have your years broken out then I would handle the Incremental Load on a Year by Year basis per the normal scheme.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qlik now provides a MERGE to handle incremental loads more cleanly for integration with Change Data Capture,&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Merge.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Merge.htm&lt;/A&gt;&amp;nbsp;but it doesn't handle DELETES so you might as well stick with the known method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Typically for Incremental load you would:&lt;/P&gt;&lt;P&gt;Read the new information into a table we will call it MyTable&lt;/P&gt;&lt;P&gt;Concatenate the old information into the new information table using a&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHERE NOT EXISTS&amp;nbsp; &amp;nbsp; (the where not exists forces you to keep the updated values)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INNER JOIN&lt;/STRONG&gt; - The Inner Join is done within Qlik. The concept is:&lt;/P&gt;&lt;P&gt;Read all of the Primary keys from the databases into a table we will call it MyTableKeys&lt;/P&gt;&lt;P&gt;Now we do an Inner Join within Qlik Sense, (not the db) between MyTable and MyTableKeys. Thus removing any values that no longer exist in the database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 14:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806647#M65616</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2021-05-10T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806649#M65618</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49457"&gt;@Dalton_Ruer&lt;/a&gt;&amp;nbsp;i've read thoroughly your answer. I do as you said, but&amp;nbsp; inner join with myTableKeys , even if i just load the pks takes days! That's why I tried asking for union all, or reading in parts straight from the db.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly look here as well, It's another post I made about this where you can see my code so far : &lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/hard-delete-incremental-load-on-very-large-table/m-p/1806242#M184711" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/hard-delete-incremental-load-on-very-large-table/m-p/1806242#M184711&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 14:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806649#M65618</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-05-10T14:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806654#M65619</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49457"&gt;@Dalton_Ruer&lt;/a&gt;&amp;nbsp;oh, wait, you mean create a qvd with only MyTableKeys and inner join it with the above? &lt;STRONG&gt;Was it so simple?!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_screaming_in_fear:"&gt;😱&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;Is that okay with the transactional data though? Doesn't this mean it will only get stored just once so if a deletion happens in data loaded after the qvd's creation will not get affected or recognized as deletion? Why Qlik Help proposes then reading straight from the db?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So many questions.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; Thank you in advance for your time&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49457"&gt;@Dalton_Ruer&lt;/a&gt;&amp;nbsp;, I so enjoy learning.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 14:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806654#M65619</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-05-10T14:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806696#M65624</link>
      <description>&lt;P&gt;No you don't store the table that is just the KEYs. You load it live each time you reload. You only store the MERGED data.&lt;/P&gt;&lt;P&gt;Load new data live&lt;/P&gt;&lt;P&gt;Concatenate to it from your QVD using where not exists&lt;/P&gt;&lt;P&gt;Load PK live&lt;/P&gt;&lt;P&gt;Inner join&lt;/P&gt;&lt;P&gt;Store the merged data back to the QVD&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 15:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806696#M65624</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2021-05-10T15:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load table from Mysql in parts in SQL SELECT</title>
      <link>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806722#M65627</link>
      <description>&lt;P&gt;Okay, I think we're so close to solving my problem that I have for SO long, please bear with me &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49457"&gt;@Dalton_Ruer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;So you suggest&lt;/P&gt;&lt;P&gt;1) I load my new data from source table&lt;EM&gt; by years&lt;/EM&gt; live as I have done&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) concatenate with my qvd with where not exists&lt;/P&gt;&lt;P&gt;3) Load all pks from source table &lt;EM&gt;by years&lt;/EM&gt; (again i suppose, else it takes aaaaaaaages) live&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Inner join &lt;STRONG&gt;with what?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5) Store as a final step.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 17:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-table-from-Mysql-in-parts-in-SQL-SELECT/m-p/1806722#M65627</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-05-10T17:53:01Z</dc:date>
    </item>
  </channel>
</rss>

