<?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: OPtimizing Performance for Select query on huge table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506992#M566754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;   The issue is that we cannot be doing anything with the Select Quesry. We are querying on two fields and there is no possibilty on including more fields of the primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 15:06:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T15:06:02Z</dc:date>
    <item>
      <title>OPtimizing Performance for Select query on huge table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506990#M566752</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;   We are fetching a single record from NAST table. The table has around 10 Million Entries.&lt;/P&gt;&lt;P&gt;   The Select Query takes around 5-6 minutes to return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   We are not using the Primary key completely. We are using only one field of the primary key.&lt;/P&gt;&lt;P&gt;    The field is also a part of the Index but we are not using all the fields in the index as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    We need to bring down the time. What can be the solution? I cant see any changes to the code, since its a single query and we cant use the Entire Primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Would creating an Index on the fields that we are concerned with help in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Open to all solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 14:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506990#M566752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T14:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: OPtimizing Performance for Select query on huge table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506991#M566753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before thinking about creating an index, try to improve your SELECT. What field(s) of the primary key are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 14:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506991#M566753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: OPtimizing Performance for Select query on huge table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506992#M566754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;   The issue is that we cannot be doing anything with the Select Quesry. We are querying on two fields and there is no possibilty on including more fields of the primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 15:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506992#M566754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T15:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: OPtimizing Performance for Select query on huge table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506993#M566755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are sometimes tricks you can use to get it to use the index more efficiently. If you let us know which fields you are using in the SELECT (all of them actually), we might be able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are you saying you can't change the code at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't create duplicate posts though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 15:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506993#M566755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T15:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: OPtimizing Performance for Select query on huge table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506994#M566756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, an index will most likely help. Use the field that varies most as the first field of your index to get the best performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, as I am sure you are aware, creating an index gives a performance hit on table updates/inserts. So you should do it when you can't find another solution (cf. suggestion about sharing your WHERE statement with us), not as an easy way out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 13:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/optimizing-performance-for-select-query-on-huge-table/m-p/2506994#M566756</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2007-07-09T13:53:59Z</dc:date>
    </item>
  </channel>
</rss>

