<?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: Inner Join Performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395265#M191567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wasim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For which fields should i make secondery index and for which table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2006 08:39:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-10T08:39:13Z</dc:date>
    <item>
      <title>Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395261#M191563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using this particular inner join.&lt;/P&gt;&lt;P&gt;The performance is quite good in development system but in Prod. System performance become very low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT G&lt;SUB&gt;MBLNR G&lt;/SUB&gt;BWART G&lt;SUB&gt;XAUTO G&lt;/SUB&gt;MENGE G&lt;SUB&gt;DMBTR F&lt;/SUB&gt;BUDAT F~XBLNR&lt;/P&gt;&lt;P&gt;    INTO TABLE IT_TEMP&lt;/P&gt;&lt;P&gt;    FROM&lt;/P&gt;&lt;P&gt;    MSEG AS G&lt;/P&gt;&lt;P&gt;    INNER JOIN&lt;/P&gt;&lt;P&gt;    MKPF AS F&lt;/P&gt;&lt;P&gt;    ON G&lt;SUB&gt;MBLNR = F&lt;/SUB&gt;MBLNR AND&lt;/P&gt;&lt;P&gt;       G&lt;SUB&gt;MJAHR = F&lt;/SUB&gt;MJAHR&lt;/P&gt;&lt;P&gt;    WHERE G~BWART IN ('101','102','601','602','309','321','322') AND&lt;/P&gt;&lt;P&gt;    G~MATNR EQ IT_MARA-MATNR&lt;/P&gt;&lt;P&gt;    AND G~WERKS IN PLANT&lt;/P&gt;&lt;P&gt;    AND G~LGORT IN S_LGORT&lt;/P&gt;&lt;P&gt;    AND F~BUDAT GE VARDATELOW&lt;/P&gt;&lt;P&gt;    AND F~BUDAT LE VARDATEHIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i can do to make the performance high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 07:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395261#M191563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395262#M191564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,, a slight change can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT G&lt;SUB&gt;MBLNR G&lt;/SUB&gt;BWART G&lt;SUB&gt;XAUTO G&lt;/SUB&gt;MENGE G&lt;SUB&gt;DMBTR F&lt;/SUB&gt;BUDAT F~XBLNR&lt;/P&gt;&lt;P&gt;INTO TABLE IT_TEMP&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;MSEG AS G&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;MKPF AS F&lt;/P&gt;&lt;P&gt;ON G&lt;SUB&gt;MBLNR = F&lt;/SUB&gt;MBLNR AND&lt;/P&gt;&lt;P&gt;G&lt;SUB&gt;MJAHR = F&lt;/SUB&gt;MJAHR&lt;/P&gt;&lt;P&gt;WHERE G~BWART IN ('101','102','601','602','309','321','322') AND&lt;/P&gt;&lt;P&gt;G~MATNR EQ IT_MARA-MATNR&lt;/P&gt;&lt;P&gt;AND G~WERKS IN PLANT&lt;/P&gt;&lt;P&gt;AND G~LGORT IN S_LGORT&lt;/P&gt;&lt;P&gt;AND F~BUDAT &amp;lt;b&amp;gt;BETWEEN VARDATELOW AND VARDATEHIGH&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395262#M191564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395263#M191565</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;You can use secondary index to make performance better and also try to use 'FOR ALL-ENTRIES' instead of join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395263#M191565</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-10T08:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395264#M191566</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;Here are some tips..&lt;/P&gt;&lt;P&gt;Always Join from a &amp;#145;MASTER&amp;#146; table to a &amp;#145;DETAIL&amp;#146; table. &lt;/P&gt;&lt;P&gt;You cannot make an Inner Join good or bad by the order in which the &lt;/P&gt;&lt;P&gt;tables are specified in the FROM and JOIN clause.&lt;/P&gt;&lt;P&gt;The database optomizer ignores your order and ensures&lt;/P&gt;&lt;P&gt;that the data is accessed in the most efficient manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please mark helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395264#M191566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T08:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join Performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395265#M191567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wasim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For which fields should i make secondery index and for which table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2006 08:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-performance/m-p/1395265#M191567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-10T08:39:13Z</dc:date>
    </item>
  </channel>
</rss>

