<?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: Parallel Execution Hints in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276326#M1530874</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;parallel query can only be used with multiblock operations or partitions.&lt;/P&gt;&lt;P&gt;In your case you"ll still see an index range scan on mkpf which can not do&lt;/P&gt;&lt;P&gt;multiblock reads (can not be parallelized).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get a parallel executed SQL execution you have to force a &lt;/P&gt;&lt;P&gt;full table scan as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
WHERE mkpf~budat IN s_budatf
     AND mseg~werks IN s_werks
    %_HINTS
    ORACLE 'FULL(T_00) PARALLEL(T_00,5)'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parallelizing this query does probably not make sense since you probably &lt;/P&gt;&lt;P&gt;access only a relatively small portion out of the table i guess. In a multi&lt;/P&gt;&lt;P&gt;user scenario database side parallelization does not make sense as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hermann Gahm on Sep 22, 2010 8:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 18:29:18 GMT</pubDate>
    <dc:creator>HermannGahm</dc:creator>
    <dc:date>2010-09-22T18:29:18Z</dc:date>
    <item>
      <title>Parallel Execution Hints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276325#M1530873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used hints in my SQL statement but when I run it and check in ST05, the hints do not seemed to work because there is no PX in the execution plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SELECT mkpf~mandt
         mkpf~mblnr
         mkpf~mjahr
         mseg~zeile
         mkpf~budat
         mseg~bwart
         mseg~matnr
         mseg~werks
         mseg~lgort
         mseg~shkzg
         mseg~bwtar
         mseg~menge
         mseg~meins
         mseg~smbln
         mseg~kostl
         mseg~aufnr
         mseg~bukrs
         mseg~prctr
    FROM mkpf
   INNER JOIN mseg
      ON mseg~mandt EQ mkpf~mandt
     AND mseg~mblnr EQ mkpf~mblnr
     AND mseg~mjahr EQ mkpf~mjahr
    INTO TABLE ts_mseg1
   WHERE mkpf~budat IN s_budatf
     AND mseg~werks IN s_werks
    %_HINTS
    ORACLE 'PARALLEL(MKPF,5)'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me on this. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 17:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276325#M1530873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T17:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Execution Hints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276326#M1530874</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;parallel query can only be used with multiblock operations or partitions.&lt;/P&gt;&lt;P&gt;In your case you"ll still see an index range scan on mkpf which can not do&lt;/P&gt;&lt;P&gt;multiblock reads (can not be parallelized).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get a parallel executed SQL execution you have to force a &lt;/P&gt;&lt;P&gt;full table scan as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
WHERE mkpf~budat IN s_budatf
     AND mseg~werks IN s_werks
    %_HINTS
    ORACLE 'FULL(T_00) PARALLEL(T_00,5)'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parallelizing this query does probably not make sense since you probably &lt;/P&gt;&lt;P&gt;access only a relatively small portion out of the table i guess. In a multi&lt;/P&gt;&lt;P&gt;user scenario database side parallelization does not make sense as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hermann Gahm on Sep 22, 2010 8:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 18:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276326#M1530874</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-09-22T18:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Execution Hints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276327#M1530875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hermann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use the parallel hint if the SELECT statement has inner joins (taken from SAP Note 651060)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 19:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276327#M1530875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-22T19:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Execution Hints</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276328#M1530876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sure, as i showed in my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of the table names you have to use the aliases (T_00, T_01, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 19:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-hints/m-p/7276328#M1530876</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-09-22T19:51:24Z</dc:date>
    </item>
  </channel>
</rss>

