<?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: Extract over Different DB's best practise in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905791#M314809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how many transactions change every minute (on average)? for few changes&lt;/P&gt;&lt;P&gt;you can build a dynamic sql for query the other DB asking only for changed transactions&lt;/P&gt;&lt;P&gt;you have to build the where clause for the other DB, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where trx_number in (trx1, trx2, trx3, .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trx1, ..... are the changed one in the Summrized table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Apr 2015 15:44:54 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-04-26T15:44:54Z</dc:date>
    <item>
      <title>Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905785#M314803</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;&lt;/P&gt;&lt;P&gt;I am taking Data from a Summarized table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add additional fields to the Summarized table from other DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other DB's contain millions of rows of data when compared to the Summarized Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I reloading the Summarized table every minute and it's no problem, what is the best approach to add the additional fields from the other DB, considering I only need trx numbers that I have in my Summarized table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summarized table only contains 300k trx numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other tables contain millions of trx numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the best approach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 14:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905785#M314803</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2015-04-26T14:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905786#M314804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe: filter the other DB with min/max from Qlk trx numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 15:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905786#M314804</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-26T15:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905787#M314805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I do that on the SQL SELECT, it takes too long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could extract all the Data into QVD Layer and then use where exists, however I don't really want to have to extract 30 million records just to get the 300k that I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the option that provides the best performance? Any ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 15:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905787#M314805</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2015-04-26T15:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905788#M314806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the 30 million row table could you do an incremental load into QVD ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 15:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905788#M314806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-26T15:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905789#M314807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand you want to add some fields to a Qlk table you load every minute.&lt;/P&gt;&lt;P&gt;These fields came from a different DB, some millons of rows, so you also have to query this other DB table every minute; you only need 300k rows (maybe a group by or something else) but you need to query some milions of rows to get the 300k row you need.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you use an incremental load on other db?&lt;/P&gt;&lt;P&gt;every minute you query the other DB for the changed records (only)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 15:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905789#M314807</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-26T15:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905790#M314808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I can, but is their a solution where I don't need to take the full 30 million.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that the best solution, or is their another possibility?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 15:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905790#M314808</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2015-04-26T15:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905791#M314809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how many transactions change every minute (on average)? for few changes&lt;/P&gt;&lt;P&gt;you can build a dynamic sql for query the other DB asking only for changed transactions&lt;/P&gt;&lt;P&gt;you have to build the where clause for the other DB, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where trx_number in (trx1, trx2, trx3, .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trx1, ..... are the changed one in the Summrized table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 15:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905791#M314809</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-26T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract over Different DB's best practise</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905792#M314810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you transfer the list of 300K ID's from the one database to the other?&amp;nbsp; QlikView would allow you to create a text file of the numbers.&amp;nbsp; SSIS would be able to pull this list into a table in the database with the 30M rows.&amp;nbsp; Once loaded you could do an INNER JOIN between the table with the millions of rows and the list of ID's of the thousands.&amp;nbsp; It's not a pure QlikView solution, but it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't write back to the database you would have to craft a load script that has a where statement in it that limits the rows correctly.&amp;nbsp; You could enumerate around the IDs you want, to build a string that could be passed in a WHERE statement.&amp;nbsp; I'm not sure how many you would be able to pass in one go though - at some point the SQL Statement would break.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the rows in the 30M row table change once created, or are they static?&amp;nbsp; If they are only appended to it would certainly be possible to load them all once as you suggest (QVD of all, then a WHERE EXISTS) and then craft a WHERE statement for only the rows that are new each run, then append them to the main data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With anything involving QVD loads it is imperative that loads are &lt;A href="http://http//www.quickintelligence.co.uk/qlikview-optimised-qvd-loads/"&gt;Optimised&lt;/A&gt;.&amp;nbsp; Anywhere you have SQL JOINS it is critical that you have sensible indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps point you in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 20:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-over-Different-DB-s-best-practise/m-p/905792#M314810</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-04-26T20:15:40Z</dc:date>
    </item>
  </channel>
</rss>

