<?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 query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064744#M1176782</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;Follow the 2nd approach. It'll be better than first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2009 11:32:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-04T11:32:15Z</dc:date>
    <item>
      <title>performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064742#M1176780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use a more meaningful subject in future&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a internal table it_po with structure as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;po no , po item , vendor , quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get unique list of vendors in another internal table it_vendors from above table. Kindly suggest me which approach is better,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.   Declare it_vendors containg only one field vendor.&lt;/P&gt;&lt;P&gt;      loop at it_po.&lt;/P&gt;&lt;P&gt;             append all vendors found in table it_vendors&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;     sort it_vendors by vendor code.&lt;/P&gt;&lt;P&gt;    delete adjacent duplsicates from it_vendors comparing vendor code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. declare it_vendors with structre same as it_po.&lt;/P&gt;&lt;P&gt;   it_vendors[] = it_po[].&lt;/P&gt;&lt;P&gt;   sort it_vendors by vendor code.&lt;/P&gt;&lt;P&gt;    delete adjacent duplsicates from it_vendors comparing vendor code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First approach will consume less memory as it has less no. of fields .&lt;/P&gt;&lt;P&gt;second approach will execute fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Feb 4, 2009 1:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064742#M1176780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064743#M1176781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;First approach will consume less memory as it has less no. of fields .&lt;/P&gt;&lt;P&gt;second approach will execute fast.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have answered one-half of your question. I dont think having 10-15 extra fields doesnot cost you much memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My personal opinion is: "Execution time should be less" &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting other replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064743#M1176781</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-02-04T11:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064744#M1176782</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;Follow the 2nd approach. It'll be better than first one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064744#M1176782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064745#M1176783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well in general whenever we talk of performance. its always trade off between memory and execution time and we always choose to save execution time. so no need to have second thoughts about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064745#M1176783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064746#M1176784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From performance point of view definitely approach 2 would be better...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064746#M1176784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064747#M1176785</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;I would like you to advise to follow second  option .Since there is a orderly manner of deleting duplicates in it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(In business point of view a same vendor can be there at 2 places since the material that was procurred from him will be for different work center or added for diff cost center ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In COMPARING ADDITION please provide some more key fields to have a narrow values .)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064747#M1176785</guid>
      <dc:creator>rejish_balakrishnan</dc:creator>
      <dc:date>2009-02-04T11:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064748#M1176786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either first or Second , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because if your Logic Continues further and fetches more data u should go for one which consumes less memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Your data is not huge, then go for the one whcih executes faster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all u r searching for overall performance ,not only to this block of code act accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 11:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-query/m-p/5064748#M1176786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T11:53:57Z</dc:date>
    </item>
  </channel>
</rss>

