<?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: Why db hints doesn't work? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914434#M2037526</link>
    <description>&lt;P&gt;That must be the issue! (DB2 for DB2/390, DB6 for DB2/UDB).&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 16:22:07 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2024-10-21T16:22:07Z</dc:date>
    <item>
      <title>Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13906623#M2032430</link>
      <description>&lt;P&gt;Hi, experts.&lt;BR /&gt;Why hints doesn't work? It's just ignored.&lt;BR /&gt;i've created a simple program and try to use &lt;STRONG&gt;' %_hints db2 '&amp;amp;max_in_blocking_factor 100&amp;amp;',&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;but it;s just ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;data : lt_tab type table of mara,
       lt_Tab2 type SORTED TABLE OF makt WITH UNIQUE key matnr spras.

select * from mara into CORRESPONDING FIELDS OF TABLE lt_tab.

select * from makt APPENDING CORRESPONDING FIELDS OF TABLE lt_tab2
  FOR ALL ENTRIES IN lt_tab
  where matnr = lt_tab-matnr
  and   spras = 'E'
  %_hints db2 '&amp;amp;max_in_blocking_factor 100&amp;amp;'.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As i understood 'FOR ALL ENTRIES' takes for 30 records and when i try to set more it's just ignored.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1234.jpg" style="width: 999px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/181307i10079BC5E0763E58/image-size/large?v=v2&amp;amp;px=999" role="button" title="1234.jpg" alt="1234.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 06:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13906623#M2032430</guid>
      <dc:creator>BergOff</dc:creator>
      <dc:date>2024-10-20T06:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13907069#M2032656</link>
      <description>&lt;P&gt;There's no evidence in your question that ABAP should consider your hint. Why do you think it should consider it? Are you just expecting from FAE that it would always improve the performance. That's wrong, you can't know. By default, consider that a join is better. FAE may be really slow sometimes, especially for big volumes. You should always analyze what's best for performance.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 08:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13907069#M2032656</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-20T08:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13907144#M2032707</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can run an EXPLAIN on your query:&lt;/P&gt;&lt;P&gt;sql&lt;BR /&gt;Copy code&lt;BR /&gt;EXPLAIN SELECT * FROM makt&lt;BR /&gt;APPENDING CORRESPONDING FIELDS OF TABLE lt_tab2&lt;BR /&gt;FOR ALL ENTRIES IN lt_tab&lt;BR /&gt;WHERE matnr = lt_tab-matnr&lt;BR /&gt;AND spras = 'E'&lt;BR /&gt;%_hints db2 '&amp;amp;max_in_blocking_factor 100&amp;amp;'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This will provide you with details on how DB2 plans to execute your query, allowing you to see if your hint is being utilized.&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2024 08:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13907144#M2032707</guid>
      <dc:creator>ShaikAzmathulla</dc:creator>
      <dc:date>2024-10-20T08:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13912490#M2036995</link>
      <description>&lt;P&gt;I know that join is better in performance&lt;/P&gt;&lt;P&gt;I want to understand why hints doesn't work.&lt;/P&gt;&lt;P&gt;As u can see at screen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It goes around 30000 times for makt and insert 30 record in each of them.&lt;/P&gt;&lt;P&gt;I want to set more than 30.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 05:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13912490#M2036995</guid>
      <dc:creator>BergOff</dc:creator>
      <dc:date>2024-10-21T05:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13912795#M2037188</link>
      <description>&lt;P&gt;You don't understand. Your hint may not apply. Please do what&amp;nbsp;&lt;SPAN class=""&gt;&lt;A class="" href="https://community.sap.com/t5/user/viewprofilepage/user-id/130494" target="_self"&gt;&lt;SPAN class=""&gt;ShaikAzmathulla&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;has suggested and show the native SQL statement generated by the kernel.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 05:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13912795#M2037188</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-21T05:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13913565#M2037479</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1000000153.jpg" style="width: 803px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/181600iAE6024DC68853866/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1000000153.jpg" alt="1000000153.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Statement 'Explain' is not defined.&lt;/P&gt;&lt;P&gt;Mine hint not 'may not applied' it's does not applied, and i want to understand why&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 08:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13913565#M2037479</guid>
      <dc:creator>BergOff</dc:creator>
      <dc:date>2024-10-21T08:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13913975#M2037516</link>
      <description>&lt;P&gt;Thank you, I appreciate. Now it's clear that it's using 30. You have chosen the "IN" FAE hint but your plan is neither "=" nor "IN" (for Oracle or HANA, one can see clearly either "column = A0 or column = A1 or ..." or "column IN (A0, A1, ...)"), it's a join with a "temporary table" containing A0, A1, ... I don't know which FAE hint the ABAP kernel is choosing for DB2/390. Could you try the other hint (max_blocking_factor) and share all FAE profile parameter values? (see the note 48230 for the exact list). As I said, I don't know DB2/390, so you may also contact the SAP support.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 12:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13913975#M2037516</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-21T12:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914272#M2037524</link>
      <description>&lt;P&gt;Are you actually running on an IBM&amp;nbsp;DB2/390 (db2) databse?&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Check SYST-DBSYS or menu system/status)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 15:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914272#M2037524</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2024-10-21T15:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914434#M2037526</link>
      <description>&lt;P&gt;That must be the issue! (DB2 for DB2/390, DB6 for DB2/UDB).&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 16:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914434#M2037526</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-21T16:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914585#M2037534</link>
      <description>&lt;P&gt;Could you please clarify if you're using DB2/UDB or DB2/390?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 19:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914585#M2037534</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-10-21T19:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why db hints doesn't work?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914951#M2037545</link>
      <description>&lt;P&gt;Sorry for misleading.&lt;/P&gt;&lt;P&gt;It's db6.&lt;/P&gt;&lt;P&gt;The solution was to change&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%_hints db2 '&amp;amp;max_in_blocking_factor 100&amp;amp;'&amp;nbsp;&lt;/STRONG&gt;to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%_hints db6 '&amp;amp;max_blocking_factor 100&amp;amp;'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 06:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-db-hints-doesn-t-work/m-p/13914951#M2037545</guid>
      <dc:creator>BergOff</dc:creator>
      <dc:date>2024-10-22T06:00:32Z</dc:date>
    </item>
  </channel>
</rss>

