<?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 Question : in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263545#M1529253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you All for your inputs.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob,  I am thinking, if we pass non-key fields in where clause, it will actually take more time, as it needs to search for the particular criteria, other wise ..it will retrieve everything and should be little faster .. (again this is my guess not confidant)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad, I knew the performance will be dependent on several other factors, but keeping everything idle or testing under same criteria, which of the select statement is good..   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;.

Select * from vbrk into table i_vbrk  where fkart = 'XXX' . 

or 

Select * from vbrk into table i_vbrk where fkart = 'xxx'  and 
                                                                   vkorg = 'zzz'' and 
                                                                   vtweg = 'ddd'. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please note all 3 fields in where clause are non-fields and neither are secondary indexes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bottom line question :: whether select statement will perform good .. if we pass many fields in where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 18:08:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-01T18:08:05Z</dc:date>
    <item>
      <title>Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263540#M1529248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a quick performance question. I am extracting all invoices (VBRK) from 2000 in ABAP program. which is taking long time. &lt;/P&gt;&lt;P&gt;In my select query where condition, I am passing only FKART (Billing type). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubt, Is it better if I pass Sales Org, Distribution channel also in my where clause. Will it improve my performance ..even though these 2 fields are not key fields in this particular table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my general doubt is .. is it helpful to pass non-key fields in where clause of select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263540#M1529248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T17:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263541#M1529249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it will reduce the amount of data returned, it shoulkd help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263541#M1529249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T17:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263542#M1529250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it helpful to pass non-key fields in where clause of select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Well, that depends on the secondary indexes and the data distribution in your system, and of course, it also affects data transport...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263542#M1529250</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-10-01T17:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263543#M1529251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, just check if it affects the retrival process then only it can improve the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263543#M1529251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T17:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263544#M1529252</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;When you have this kind of doubt, you can use SE30 to measure the runtime of your SELECTs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE30 -&amp;gt; Tips &amp;amp; Tricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use both sides to write you selection. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the left side write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: t_vbrk type table of vbrk.
select * 
from vbrk 
into table t_vbrk 
where FKART = 'F2B'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the right side:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: t_vbrk type table of vbrk.
select * 
from vbrk 
into table t_vbrk 
where FKART = 'F2B'
  and VKORG = '0082'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then press button "Measure Runtime".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you will have the comparison that you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 17:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263544#M1529252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263545#M1529253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you All for your inputs.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob,  I am thinking, if we pass non-key fields in where clause, it will actually take more time, as it needs to search for the particular criteria, other wise ..it will retrieve everything and should be little faster .. (again this is my guess not confidant)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad, I knew the performance will be dependent on several other factors, but keeping everything idle or testing under same criteria, which of the select statement is good..   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;.

Select * from vbrk into table i_vbrk  where fkart = 'XXX' . 

or 

Select * from vbrk into table i_vbrk where fkart = 'xxx'  and 
                                                                   vkorg = 'zzz'' and 
                                                                   vtweg = 'ddd'. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please note all 3 fields in where clause are non-fields and neither are secondary indexes.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bottom line question :: whether select statement will perform good .. if we pass many fields in where clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 18:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263545#M1529253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T18:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263546#M1529254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's time you actually try it out and see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to run each SELECT multiple times and take the lowest time from each to do a comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 18:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263546#M1529254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T18:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263547#M1529255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without being able to analyze it and not knowing the data distribution, I'd say neither one is very good.  Given no secondary indexes outside of standard, what you've got is a table scan in both cases.  The data transport may (or may not) be better on the second due to fewer rows returned (and thus less packets transported).  I would add some fields to the where clause (FKDAT?) and add a secondary index that's appropriate so that at least you could trigger a bounded range scan instead of a full table scan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 18:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263547#M1529255</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-10-01T18:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263548#M1529256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Try to fetch all the Billing documents from table &lt;STRONG&gt;VRKPA&lt;/STRONG&gt; by providing &lt;STRONG&gt;FKART&lt;/STRONG&gt;, it has other field like &lt;STRONG&gt;VKORG&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;VTWEG&lt;/STRONG&gt; as primary key fields along with FKART.  Based on the above table entires get the entries from VBRK, this may improve the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have a look at the &lt;STRONG&gt;SAP Note 185530&lt;/STRONG&gt; - Performance: Customer developments in SD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 18:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263548#M1529256</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2010-10-01T18:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263549#M1529257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aha, the "real" answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Just have a look at the SAP Note 185530 - Performance: Customer developments in SD&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use of this SAP Note should be MANDATORY for anyone who reports from SD...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note also that index table VRKPA contains GJAHR, which may be useful to you for selecting by year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 18:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263549#M1529257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T18:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263550#M1529258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is always better to give the primary fields in the table and then get it into the ABAP memory.&lt;/P&gt;&lt;P&gt;Once query is executed, then better to delete the entries not required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 18:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263550#M1529258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T18:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Question :</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263551#M1529259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to fetch all the Billing documents from table VRKPA by providing FKART, it has other field like VKORG &amp;amp; VTWEG as primary key fields along with FKART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sorry, but how do you figure that's better???  With no LEADING fields specified, you're still in a scan mode.  It makes no difference that some fields are specified.  Not to mention the fact that the use of that table is highly dependent on configuration.  If you haven't configured anything to populate OR you've configured every partner function, you're way worse off than before...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 20:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-question/m-p/7263551#M1529259</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-10-01T20:46:37Z</dc:date>
    </item>
  </channel>
</rss>

