<?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 Qlik Sense 1.1 - long connect times with Direct Query in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Qlik-Sense-1-1-long-connect-times-with-Direct-Query/m-p/854252#M40407</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'm experiencing extremely long connect times using Direct Query and I wonder if anyone has any suggestions for improving performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Qlik Sense 1.1 connecting to an Amazon RDS database. Because the table I want to read is so big (100 million plus rows), I'm using Direct Query (in-memory won't work for me). It's taking 12 minutes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt; for my load script to get to the point where it's reading in fields. There's a big delay before each field is loading too - 4 to 5 minutes before the field is loaded. On the same machine, I'm using SQL directly and I'm getting data back in a fraction of that time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'RDS';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trace Name of table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Name of table]:&lt;/P&gt;&lt;P&gt;DIRECT QUERY&lt;/P&gt;&lt;P&gt;dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; key_field_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `field_id2`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `field_id3`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;/P&gt;&lt;P&gt;FROM `database`.`table`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got any ideas for why it's taking 12 minutes before I'm seeing data being read in? Any idea why there's a delay of 4 to 5 minutes before each field is read in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 21:12:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-03T21:12:16Z</dc:date>
    <item>
      <title>Qlik Sense 1.1 - long connect times with Direct Query</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Qlik-Sense-1-1-long-connect-times-with-Direct-Query/m-p/854252#M40407</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'm experiencing extremely long connect times using Direct Query and I wonder if anyone has any suggestions for improving performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Qlik Sense 1.1 connecting to an Amazon RDS database. Because the table I want to read is so big (100 million plus rows), I'm using Direct Query (in-memory won't work for me). It's taking 12 minutes &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt; for my load script to get to the point where it's reading in fields. There's a big delay before each field is loading too - 4 to 5 minutes before the field is loaded. On the same machine, I'm using SQL directly and I'm getting data back in a fraction of that time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'RDS';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trace Name of table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Name of table]:&lt;/P&gt;&lt;P&gt;DIRECT QUERY&lt;/P&gt;&lt;P&gt;dimension&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; key_field_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `field_id2`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `field_id3`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;/P&gt;&lt;P&gt;FROM `database`.`table`;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got any ideas for why it's taking 12 minutes before I'm seeing data being read in? Any idea why there's a delay of 4 to 5 minutes before each field is read in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 21:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Qlik-Sense-1-1-long-connect-times-with-Direct-Query/m-p/854252#M40407</guid>
      <dc:creator />
      <dc:date>2015-04-03T21:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense 1.1 - long connect times with Direct Query</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Qlik-Sense-1-1-long-connect-times-with-Direct-Query/m-p/854253#M40408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-left: 4.5pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;You can try connection pooling. When a connection to a database is made a new connection is made and destroyed every time a user connects and disconnects. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 3.75pt; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;Database service provider can implement a pooling technique that can allow&amp;nbsp; multiple connection objects from a resource pool to be shared transparently among the requesting clients. Basically, connections are not destroyed but are released after use into a pool of connections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .5in;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;The load script syntax to setup the pooling capability is as follows: &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in; margin-bottom: .0001pt; text-indent: .5in;"&gt;&lt;EM style="color: #00b050; font-size: 12.0pt; font-family: 'Arial','sans-serif';"&gt;SET DirectConnectionMax=10; &lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: .5in;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;The default setting is 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 07:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Qlik-Sense-1-1-long-connect-times-with-Direct-Query/m-p/854253#M40408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-04T07:36:54Z</dc:date>
    </item>
  </channel>
</rss>

