<?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: select query is slowly in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389332#M1924260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using a custom index for this SELECT. Did you create an index just to speed this SELECT? If so, I would get rid of it and let the SELECT run slowly in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you insist on keeping the custom index, analyze how the WHERE clause will be set up and modify the order of the fields in the index so that the more selective fields are at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you will normally be running this for a single day or a small range of dates, make UDATE the first field in the index (after MANDT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2015 14:52:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-12-16T14:52:46Z</dc:date>
    <item>
      <title>select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389325#M1924253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my select query is very slowly, how to increse speed of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;objnr UDATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;jcds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where&amp;nbsp; &lt;/SPAN&gt;INACT = &lt;SPAN class="L0S33"&gt;' ' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;and&amp;nbsp; &lt;/SPAN&gt;STAT = &lt;SPAN class="L0S33"&gt;'I0009' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;objnr &lt;SPAN class="L0S52"&gt;like &lt;/SPAN&gt;srch_str&amp;nbsp; &lt;SPAN class="L0S52"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UDATE &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;budat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_HINTS ORACLE &lt;SPAN class="L0S33"&gt;'INDEX("JCDS" "JCD~ZDA")'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my index is same as picture :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/852459" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 08:38:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389325#M1924253</guid>
      <dc:creator>former_member210823</dc:creator>
      <dc:date>2015-12-16T08:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389326#M1924254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;Did you execute a SQL trace (ST05) to insure that the hint is actually&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt; &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;taken into account?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;You forgot client in the index keys : add MANDT &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Raymond&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 08:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389326#M1924254</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-12-16T08:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389327#M1924255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I think it is the OBJNR search that is causing the pain, can you replace this with an "=" instead of a "like" this table will be very large, you really need to find the OBJNR before running this.&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;Arden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389327#M1924255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-16T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389328#M1924256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Masoumeh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;select &lt;/SPAN&gt;objnr UDATE&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;from &lt;/SPAN&gt;jcds&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;where&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;objnr &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; background-position: initial;"&gt;like &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;srch_str&amp;nbsp; and &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-style: inherit; background: transparent; font-size: 12px; font-family: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;STAT = &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; background-position: initial;"&gt;'I0009' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; background-position: initial;"&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-style: inherit; background: transparent; font-size: 12px; font-family: inherit; font-weight: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;INACT = &lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;' ' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;and&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UDATE &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;budat&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_HINTS ORACLE &lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'INDEX("JCDS" "JCD~ZDA")'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Also as Arden said, try using = instead of like.....if it contains a Pattern then you can use CP instead of EQ.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389328#M1924256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-16T09:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389329#M1924257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Hi Masoumeh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Select query on table JCDS will be very slow unless you pass the OBJNR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Therefore you first get the OBJNR and STAT from table JEST by passing it to STAT "I0009" and INACT = ' ' then select entries from &lt;SPAN style="color: #333333; font-size: 12px;"&gt;JCDS for all entries of JEST by passing OBJNR, STAT and UDATE.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;JEST is kind of header table for &lt;SPAN style="color: #333333; font-size: 12px;"&gt;JCDS therefore you first select the data from &lt;SPAN style="color: #333333; font-size: 12px;"&gt;JEST and then from JCDS.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;I am sure this will improve the performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Chudamani Gavel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 10:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389329#M1924257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-16T10:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389330#M1924258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi masoumeh&lt;STRONG style=": ; padding-right: 3px; text-align: right; font-style: inherit; font-weight: normal; background-attachment: initial; background-size: initial; background-origin: initial; color: #3778c7; background: #ffffff; font-size: 20px; margin: -9px 0 0; font-family: inherit; background-image: initial; background-position: initial; background-repeat: initial; background-clip: initial;"&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your select query is as below:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;select &lt;/SPAN&gt;objnr UDATE&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;from &lt;/SPAN&gt;jcds&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;table&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;where&amp;nbsp; &lt;/SPAN&gt;INACT = &lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;' ' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;and&amp;nbsp; &lt;/SPAN&gt;STAT = &lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'I0009' &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;and &lt;/SPAN&gt;objnr &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;like &lt;/SPAN&gt;srch_str&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UDATE &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;in &lt;/SPAN&gt;budat&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_HINTS ORACLE &lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'INDEX("JCDS" "JCD~ZDA")'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;There are few thinks which needs to be considered :&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;a) what you are passing in srch_str?&amp;nbsp; Instead of using jcds with search string it is much better to gather the exact object numbers and then pass them to JCDS to gather status transitions.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;e.g: You need status changes of&amp;nbsp;&amp;nbsp; operations in a single day then get the operations changed from afvc or other tables first to get the object numbers and then pass them to jcds.Exact object numbers will speed up process.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;b)TRACE your query in ST05, even with indexes this table normally contains larga data sets thus based on your requirement it would be better to tweak the query .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 12:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389330#M1924258</guid>
      <dc:creator>tapomay_sanyal</dc:creator>
      <dc:date>2015-12-16T12:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389331#M1924259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Masoumeh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Are you sure that the index name that is being used is correct? Have you missed an 'S' in the index name &lt;SPAN class="L0S33"&gt;JCD&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;/SPAN&gt;~ZDA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;objnr UDATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;jcds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where&amp;nbsp; &lt;/SPAN&gt;INACT = &lt;SPAN class="L0S33"&gt;' ' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;and&amp;nbsp; &lt;/SPAN&gt;STAT = &lt;SPAN class="L0S33"&gt;'I0009' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;objnr &lt;SPAN class="L0S52"&gt;like &lt;/SPAN&gt;srch_str&amp;nbsp; &lt;SPAN class="L0S52"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UDATE &lt;SPAN class="L0S52"&gt;in &lt;/SPAN&gt;budat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_HINTS ORACLE &lt;SPAN class="L0S33"&gt;'INDEX("JCDS" "&lt;SPAN style="text-decoration: line-through;"&gt;JCD~ZDA&lt;/SPAN&gt;")'&lt;/SPAN&gt;.&amp;nbsp; "&lt;SPAN class="L0S33"&gt;JCD&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;/SPAN&gt;~ZDA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the index name is not correct, there will be no syntax error, but the purpose of index will not be served.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Its good practice, though it may not make much difference to the performance , to use the fields in the query in the same order as is used in the index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 12:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389331#M1924259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-16T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: select query is slowly</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389332#M1924260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using a custom index for this SELECT. Did you create an index just to speed this SELECT? If so, I would get rid of it and let the SELECT run slowly in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you insist on keeping the custom index, analyze how the WHERE clause will be set up and modify the order of the fields in the index so that the more selective fields are at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you will normally be running this for a single day or a small range of dates, make UDATE the first field in the index (after MANDT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 14:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-is-slowly/m-p/11389332#M1924260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-16T14:52:46Z</dc:date>
    </item>
  </channel>
</rss>

