<?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 Execution Plan for SQL Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-plan-for-sql-statement/m-p/4476032#M1059974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just need to know what is consider a an expensive SQL when you do an SQL execution plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the SQL statement has an estimated cost of 25. Does this consider an expensive SQL statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know 0 is a good value. But what is a guide here? lower than 10 is good, higher than 11 is bad?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2008 03:57:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-11T03:57:29Z</dc:date>
    <item>
      <title>Execution Plan for SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-plan-for-sql-statement/m-p/4476032#M1059974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just need to know what is consider a an expensive SQL when you do an SQL execution plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the SQL statement has an estimated cost of 25. Does this consider an expensive SQL statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know 0 is a good value. But what is a guide here? lower than 10 is good, higher than 11 is bad?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 03:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-plan-for-sql-statement/m-p/4476032#M1059974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T03:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Plan for SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-plan-for-sql-statement/m-p/4476033#M1059975</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;What does the execution plan say? Does it use proper Indexes? Is it causing a full table scan?&lt;/P&gt;&lt;P&gt;Estimated cost looks good and I am not sure of any number which say good or bad.&lt;/P&gt;&lt;P&gt;Check wethere this exuction plan causing high disk reads/buffer gets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KVR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2008 14:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-plan-for-sql-statement/m-p/4476033#M1059975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Execution Plan for SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-plan-for-sql-statement/m-p/4476034#M1059976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eida Hanafiah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Give you brief explonation about expensive SQL statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;general threshold for an expensive SQL statement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an SQL statement is having disk reads = (&amp;gt;2%) of total Reads&lt;/P&gt;&lt;P&gt;If an SQL statement is having buffer gets = (&amp;gt;5%) of logical Reads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again depending on the database performance of the system, we need to analyze expensive SQL statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If database response time &amp;gt; 40% of Total response time, which means there would be existence of expensive SQL statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to execution plan, the estimated costs depends on the access method to the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Full table scan&lt;/P&gt;&lt;P&gt;2. Index range scan&lt;/P&gt;&lt;P&gt;3. Index unique scan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Estimated costs more than 50 is really issue and need to analyze.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want more information, please feel free to reply me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pavan Kumar Gali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 11:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-plan-for-sql-statement/m-p/4476034#M1059976</guid>
      <dc:creator>pavan_kumargali</dc:creator>
      <dc:date>2008-09-12T11:03:46Z</dc:date>
    </item>
  </channel>
</rss>

