<?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: %_HINTS DB2 syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474665#M1417879</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;&amp;gt; I also tried with syntax &lt;STRONG&gt;%_HINTS DB2 '&amp;amp;max_blocking_factor 500&amp;amp;&amp;amp;max_in_blocking_factor 500&amp;amp;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this syntax should be correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this example works fine for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %_HINTS ORACLE '&amp;amp;max_in_blocking_factor 50&amp;amp;&amp;amp;max_blocking_factor 50&amp;amp;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How much elements do your inlists have instead? the default values?&lt;/P&gt;&lt;P&gt;Have you tried with a smaller value than 500 (e.g. 100) as well?&lt;/P&gt;&lt;P&gt;Or maybe a silly question are you really using DB2 (DB2  UDB for zseries)&lt;/P&gt;&lt;P&gt;or DB4 (DB2 UDB for i series) or DB6 (DB2 for LUW)?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Which is correct syntax and should I see the blocking in an ST05 trace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you should see the blocking in ST05 in the statement details (nr. of bind variables) and less executions&lt;/P&gt;&lt;P&gt;of the statement compared with lower values for the blocking factors... .&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, 20 Jan 2010 14:56:34 GMT</pubDate>
    <dc:creator>HermannGahm</dc:creator>
    <dc:date>2010-01-20T14:56:34Z</dc:date>
    <item>
      <title>%_HINTS DB2 syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474664#M1417878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select recn&lt;/P&gt;&lt;P&gt;           evdat&lt;/P&gt;&lt;P&gt;   from cciht_ial&lt;/P&gt;&lt;P&gt;    into corresponding fields of table lt_header&lt;/P&gt;&lt;P&gt;     for all entries in lt_ialrecn&lt;/P&gt;&lt;P&gt;   where valfr le sy-datum&lt;/P&gt;&lt;P&gt;        and valto ge sy-datum&lt;/P&gt;&lt;P&gt;        and recn eq lt_ialrec-recn&lt;/P&gt;&lt;P&gt;    %_HINTS DB2 'max_blocking_factor 500 max_in_blocking_factor 500'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see no improvement in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look in ST05 the SQL IN does not seem to be blocked by 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried with syntax &lt;STRONG&gt;%_HINTS DB2 '&amp;amp;max_blocking_factor 500&amp;amp;&amp;amp;max_in_blocking_factor 500&amp;amp;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is correct syntax and should I see the blocking in an ST05 trace?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 14:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474664#M1417878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: %_HINTS DB2 syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474665#M1417879</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;&amp;gt; I also tried with syntax &lt;STRONG&gt;%_HINTS DB2 '&amp;amp;max_blocking_factor 500&amp;amp;&amp;amp;max_in_blocking_factor 500&amp;amp;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this syntax should be correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this example works fine for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; %_HINTS ORACLE '&amp;amp;max_in_blocking_factor 50&amp;amp;&amp;amp;max_blocking_factor 50&amp;amp;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How much elements do your inlists have instead? the default values?&lt;/P&gt;&lt;P&gt;Have you tried with a smaller value than 500 (e.g. 100) as well?&lt;/P&gt;&lt;P&gt;Or maybe a silly question are you really using DB2 (DB2  UDB for zseries)&lt;/P&gt;&lt;P&gt;or DB4 (DB2 UDB for i series) or DB6 (DB2 for LUW)?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Which is correct syntax and should I see the blocking in an ST05 trace?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you should see the blocking in ST05 in the statement details (nr. of bind variables) and less executions&lt;/P&gt;&lt;P&gt;of the statement compared with lower values for the blocking factors... .&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, 20 Jan 2010 14:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474665#M1417879</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-01-20T14:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: %_HINTS DB2 syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474666#M1417880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that really what you want .. max_blocking_factor 500 ? ...  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one max_in_blocking_factor 500 has advantages, but 500 is a number which is unneccessarily high:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you really expect a big improvement, but a very large blocking fatcor, I would have doubts.&lt;/P&gt;&lt;P&gt;The ranges puts everything in one statement, and dumps when the statements becomes to complicated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally the advantage for large blockings factors is not so high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a big difference whether you execute:&lt;/P&gt;&lt;P&gt;+  1 entry per execution (SELECT in LOOP) &lt;/P&gt;&lt;P&gt;+   a few entries (blocking factors 5 - 10)&lt;/P&gt;&lt;P&gt;+   you can still gain with factors up to 100. &lt;/P&gt;&lt;P&gt;But then I would expect a saturation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 15:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474666#M1417880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: %_HINTS DB2 syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474667#M1417881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your syntax is the correct one and I lowered factor to 100 as suggested and can see it in ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 16:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474667#M1417881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T16:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: %_HINTS DB2 syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474668#M1417882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raynald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be interesting for us to see the effect i think. Would you mind to share the&lt;/P&gt;&lt;P&gt;resulst regarding improvement? I'm interested in the blocking and runtime before and after &lt;/P&gt;&lt;P&gt;the change.&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, 20 Jan 2010 16:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474668#M1417882</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-01-20T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: %_HINTS DB2 syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474669#M1417883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can play around with simple mathematics:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  100 ( offset + item)     = T1&lt;/P&gt;&lt;P&gt;  20   ( offset + 5 item ) = T2 &lt;/P&gt;&lt;P&gt;  1     ( offset + item )    = T3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Play in Excel, use different accumptions for cost for offset and for item and you will see the effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 09:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-db2-syntax/m-p/6474669#M1417883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T09:38:53Z</dc:date>
    </item>
  </channel>
</rss>

