<?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: performance required in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532419#M574374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you jsut paste the correct code.&lt;/P&gt;&lt;P&gt;And also as this is select single and if you are having the whole key in where clause then it is the fastest, but if you don't have the whole key then do not use SELECT single instead use SELECT UPTO 1 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2007 01:00:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-17T01:00:32Z</dc:date>
    <item>
      <title>performance required in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532418#M574373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt; my select statement below is taking around 15 sec to execute, need your help in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select single * from tablename where no = itab-no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;vj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 00:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532418#M574373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T00:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: performance required in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532419#M574374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you jsut paste the correct code.&lt;/P&gt;&lt;P&gt;And also as this is select single and if you are having the whole key in where clause then it is the fastest, but if you don't have the whole key then do not use SELECT single instead use SELECT UPTO 1 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 01:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532419#M574374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T01:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance required in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532420#M574375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi atish,&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM VIQMEL WHERE EQFNR = ITAB-AUFNR..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 01:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532420#M574375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T01:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: performance required in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532421#M574376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try with select upto one row..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM VIQMEL into VIQMEL up to 1 row&lt;/P&gt;&lt;P&gt;           WHERE EQFNR = ITAB-AUFNR.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you use select single on databse view ,that to you are selecting the all fields,the field EQFNR it may have many same records,so use select upto 1 row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below link :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/a5/298aa13dae11d3a98200a0c9449261/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/a5/298aa13dae11d3a98200a0c9449261/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 02:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532421#M574376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T02:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: performance required in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532422#M574377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most costly statement is select statement, so you should take precautions to use it. &lt;/P&gt;&lt;P&gt;In your case though you are not providing the whole statement, What i can suggest you is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Instead of select * , select only the filelds required in the order they are there in the table.&lt;/P&gt;&lt;P&gt;2. In the where clause if possible give the entire primary key in the same order as it is there in the table.&lt;/P&gt;&lt;P&gt;3. If you are using fields other than primary key, create a secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 02:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532422#M574377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T02:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: performance required in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532423#M574378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VIQMEL is not a table itself - it is a view of tables QMIH, QMEL and ILOA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the field you are searching on (EQFNR) is a non-key field on table ILOA which is not an index field either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be very slow depending on the size of the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other data you can use to search by?  perhaps it would be quicker to get extra key data for this view by reading some other tables first?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, you may need to add an index to ILOA for this field - I would check with SAP as adding indexes to standard tables such as this which already appears to have several indexes may have unforseen impacts on standard processing.  Generally it is all right, but an extra index for the system to maintain can cause problems sometimes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 03:53:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532423#M574378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T03:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: performance required in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532424#M574379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 08:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-required-in-select-statement/m-p/2532424#M574379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T08:31:25Z</dc:date>
    </item>
  </channel>
</rss>

