<?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: performance issue-open sql vs native sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699830#M1670781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you would give up the built-in optimisation techniques of the database interface (DBI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your description is very vague, add more details like the actual open SQL statement, existing indexes, results of ST05 SQL-trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2012 07:23:02 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2012-04-30T07:23:02Z</dc:date>
    <item>
      <title>performance issue-open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699829#M1670780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a scenario where the select statement is fetching around&lt;SPAN style="text-decoration: line-through;"&gt; 3 Lac &lt;/SPAN&gt;&lt;EM&gt; 300,000 &lt;/EM&gt;records from database table and we have 3 such select statements all of which are written using open sql, will converting them into native sql help me improve the performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Thomas Zloch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 04:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699829#M1670780</guid>
      <dc:creator>ankit_doshi</dc:creator>
      <dc:date>2012-04-30T04:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue-open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699830#M1670781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you would give up the built-in optimisation techniques of the database interface (DBI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your description is very vague, add more details like the actual open SQL statement, existing indexes, results of ST05 SQL-trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 07:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699830#M1670781</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-04-30T07:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue-open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699831#M1670782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;I thought that if I use native SQL, the DBI would not require to convert the open SQL into Native SQL and thus it would save some time and eventually add to the performance. I was not pretty sure about it and so I started this discussion. I am looking for generic replies only, I browsed the net and did not find much about performance related topics for open/native sql. &lt;/P&gt;&lt;P&gt;It would be a simple select query with about 3-4 conditions in where clause, but the amount of data fetched would be huge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 10:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699831#M1670782</guid>
      <dc:creator>ankit_doshi</dc:creator>
      <dc:date>2012-04-30T10:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue-open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699832#M1670783</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;whatever SQL it is, it will be compiled long before the execution, otherwise you will not be able to start the program. At runtime the statement will be parsed, which is some kind of machine-language for the database. At this time the access plan will be compiled. This will be in the range of twens of micro seconds. So I guess in terms of performance, there will be no benefit in general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a usefull scenario once, where i could make use of a rownum-limited ordered subselect result set on an ORACLE DB. But this might be a rare case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL is usefull, when you need to us DB features that are not codable in open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 10:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-open-sql-vs-native-sql/m-p/8699832#M1670783</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2012-04-30T10:50:40Z</dc:date>
    </item>
  </channel>
</rss>

