<?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: sql performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-performance/m-p/12484537#M2002045</link>
    <description>&lt;P&gt;Hi Wei, &lt;/P&gt;&lt;P&gt;I am pretty sure, that both queries have the exact same execution plan. So the choice is up to you. &lt;/P&gt;&lt;P&gt;You can check this with the PlanViz tool. &lt;/P&gt;&lt;P&gt;Reards, &lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 19:38:41 GMT</pubDate>
    <dc:creator>Jrg_Brandeis</dc:creator>
    <dc:date>2022-03-22T19:38:41Z</dc:date>
    <item>
      <title>sql performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-performance/m-p/12484536#M2002044</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt;1. &lt;/P&gt;
  &lt;P&gt;DO&lt;/P&gt;
  &lt;P&gt;Begin&lt;/P&gt;
  &lt;P&gt;temp1 = select * from EKKO where BUKRS = '1000'.&lt;/P&gt;
  &lt;P&gt;select temp1.*, EKPO.* from temp1 inner join EKPO.&lt;/P&gt;
  &lt;P&gt;END;&lt;/P&gt;
  &lt;P&gt;2. &lt;/P&gt;
  &lt;P&gt;DO&lt;/P&gt;
  &lt;P&gt;Begin&lt;/P&gt;
  &lt;P&gt;select EKKO.*, EKPO.* from EKKO inner join EKPO where EKKO.BUKRS = '1000'.&lt;/P&gt;
  &lt;P&gt;END;&lt;/P&gt;
  &lt;P&gt;Which cost less time ?&lt;/P&gt;
  &lt;P&gt;I mean, two ways: &lt;/P&gt;
  &lt;P&gt;1. Firstly , reduce the result of table. and make join of tables.&lt;/P&gt;
  &lt;P&gt;2. Put the filter directly into the where clause of join.&lt;/P&gt;
  &lt;P&gt;Which way is better ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 08:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-performance/m-p/12484536#M2002044</guid>
      <dc:creator>former_member435389</dc:creator>
      <dc:date>2022-03-22T08:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: sql performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-performance/m-p/12484537#M2002045</link>
      <description>&lt;P&gt;Hi Wei, &lt;/P&gt;&lt;P&gt;I am pretty sure, that both queries have the exact same execution plan. So the choice is up to you. &lt;/P&gt;&lt;P&gt;You can check this with the PlanViz tool. &lt;/P&gt;&lt;P&gt;Reards, &lt;/P&gt;&lt;P&gt;Jörg&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 19:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-performance/m-p/12484537#M2002045</guid>
      <dc:creator>Jrg_Brandeis</dc:creator>
      <dc:date>2022-03-22T19:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: sql performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-performance/m-p/12484538#M2002046</link>
      <description>&lt;P&gt;So it means these two kinds of SQL cost the same running time , am i right ?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 04:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-performance/m-p/12484538#M2002046</guid>
      <dc:creator>former_member435389</dc:creator>
      <dc:date>2022-03-23T04:19:49Z</dc:date>
    </item>
  </channel>
</rss>

