<?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 Using Hint to optimizing the Oracle SQL Query? How about SQL SERVER or TERADATA in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Hint-to-optimizing-the-Oracle-SQL-Query-How-about-SQL/m-p/142289#M716066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could I include a hint like /*+ FIRST_ROWS */ in the SQL SELECT in case of Oracle as follows inorder to speed up the query processing because one of the query takes around 2 hours to complete.&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;SQL SELECT /*+ FIRST_ROWS */ A.*,B.*&lt;BR /&gt;FROM "Sample".table&lt;BR /&gt;WHERE.....&lt;/P&gt;&lt;P&gt;Would this reduce the processing time of the sql query to less than this time.&lt;/P&gt;&lt;P&gt;Apart from this, Is there any other way to optmize the query&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case of SQL SERVER or TERADATA, how we could optimize the query?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any suggestions is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 00:17:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-24T00:17:05Z</dc:date>
    <item>
      <title>Using Hint to optimizing the Oracle SQL Query? How about SQL SERVER or TERADATA</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Hint-to-optimizing-the-Oracle-SQL-Query-How-about-SQL/m-p/142289#M716066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could I include a hint like /*+ FIRST_ROWS */ in the SQL SELECT in case of Oracle as follows inorder to speed up the query processing because one of the query takes around 2 hours to complete.&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;SQL SELECT /*+ FIRST_ROWS */ A.*,B.*&lt;BR /&gt;FROM "Sample".table&lt;BR /&gt;WHERE.....&lt;/P&gt;&lt;P&gt;Would this reduce the processing time of the sql query to less than this time.&lt;/P&gt;&lt;P&gt;Apart from this, Is there any other way to optmize the query&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case of SQL SERVER or TERADATA, how we could optimize the query?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any suggestions is appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 00:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Hint-to-optimizing-the-Oracle-SQL-Query-How-about-SQL/m-p/142289#M716066</guid>
      <dc:creator />
      <dc:date>2009-04-24T00:17:05Z</dc:date>
    </item>
    <item>
      <title>Using Hint to optimizing the Oracle SQL Query? How about SQL SERVER or TERADATA</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Hint-to-optimizing-the-Oracle-SQL-Query-How-about-SQL/m-p/142290#M716067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lary,&lt;/P&gt;&lt;P&gt;it depends. Oracle´s FIRST_ROWS hint leads into nested loop joins (on indexes) which could be a big decrease of performance. If you have Oracle 9i or higher you could try FIRST_ROWS(100) which will process faster while using hash joins.&lt;/P&gt;&lt;P&gt;I would optimize the query in Oracle first (sqlplus or toad, explain plan etc.) w/o hints. Keep in mind that you will retrieve all rows in the QV load, not only "first rows". So, processing time of the whole result set is crucial.&lt;/P&gt;&lt;P&gt;Maybe something is wrong with your join condition (between tables A and B) and/or missing indexes...&lt;/P&gt;&lt;P&gt;Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 20:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Hint-to-optimizing-the-Oracle-SQL-Query-How-about-SQL/m-p/142290#M716067</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-04-24T20:59:57Z</dc:date>
    </item>
  </channel>
</rss>

