<?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: Infoset vs Indexed nested loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060212#M1175981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not see all details of your problem but from performance I see big issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to select a lot of data&lt;/P&gt;&lt;P&gt;And you want to create dynamically quite a lot of different accesses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be surprised if all these access are automatically working fine. So from performance side your problem is probably not solvable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2009 09:45:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-22T09:45:56Z</dc:date>
    <item>
      <title>Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060206#M1175975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;   i have an requirement in which i need to fetch data from several tables almost 6-8 tables (eventually to IT). right now i am fetching data using Select stmt using For all entries addition. So my requirement is to combine them into a big table and again i need to perform some aggregate functions on the final result. each table is supposed to have has 70000 to 100000 records. So my question what is better approach to combine them into a single internal table?? i have 2-3 options what i understood as per requirement but i want better performance and your opinion.&lt;/P&gt;&lt;P&gt;1. Use indexed loop or parallel cursor to combine all 6-8 tables&lt;/P&gt;&lt;P&gt;2. Create Infosets to fetch the desired final internal table at once and call infoset through abap stmt but i fear its gonna be slow too.&lt;/P&gt;&lt;P&gt;3. Create views to fetch database record and it will lower down my select queries n eventually use Indexed loop to build final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am extracting following data in one snapshot( but its dynamic )&lt;/P&gt;&lt;P&gt;PA0000 Active Employees&lt;/P&gt;&lt;P&gt;HRP1001 Employee to Position Relation&lt;/P&gt;&lt;P&gt;HRP1001 Position to Job Relation&lt;/P&gt;&lt;P&gt;PA0002 Employee Personal Data&lt;/P&gt;&lt;P&gt;HRP1000 Employee Position Information&lt;/P&gt;&lt;P&gt;HRP1000 Employee Job Information&lt;/P&gt;&lt;P&gt;HRP1001 Employee Talent Relation&lt;/P&gt;&lt;P&gt;HRP1001 Talent To Job Family Relation&lt;/P&gt;&lt;P&gt;HRP1000 Job Family Information&lt;/P&gt;&lt;P&gt;HRP*custom &lt;/P&gt;&lt;P&gt;Z*table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have any other suggestions ??&lt;/P&gt;&lt;P&gt;keep in mind i am passing all tables names and their fields at runtime(dynamically).&lt;/P&gt;&lt;P&gt;i will appreciate your reply on which method will be more efficient for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 14:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060206#M1175975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T14:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060207#M1175976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mani,&lt;/P&gt;&lt;P&gt;I would fetch data from such related tables making use of a join.&lt;/P&gt;&lt;P&gt;However i could not understand how you intend to dynamically process multiple tables and correlate the data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 14:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060207#M1175976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060208#M1175977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But will Join work on Same tables??? i guess no. well for parameter i am passing complex input parameter which include the table name to extract data from including all fileds in output table, where clause, sort order etc. each row contain data for one table or you can say output for one IT. similarly im suppose to pass another input parameter which include the output table name, IT tables used to build new table, there join condition, sort order, 1to1 or 1ton indicator etc.&lt;/P&gt;&lt;P&gt;this will build me a final output table based on join on several IT tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i need to perform some final aggregate functions on the final output tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well using join even is not a good option as far as i know if number of records exceed 10k correct me if im wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infoset dont support same table join either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestion will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 15:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060208#M1175977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060209#M1175978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved to ABAP Performance and Tuning Forum...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 00:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060209#M1175978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T00:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060210#M1175979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; keep in mind i am passing all tables names and their fields at runtime(dynamically).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to avoid that if possible. I would say, it is more often avoidable than people think. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you should try to use joins. And of course a join does not care whether the tables a different or the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forget the parallel cursor, it is a myth, which nearly nobody uses, but it is not faster than a loop with a hash table inside. Use loop and inside the loop either sorted tables (non-unique keys) or hash tables (if you know the unique key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall calculate the size of your final table lines times width, can you manage such a table in memory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the actual use of such a big table? I think your task is a bit overambitious. Even optimzed it will take a whil, with bugs it will take ages &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 08:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060210#M1175979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060211#M1175980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well with this function, i am going to do work of almost 50 FM with one FM if i pass parameters dynamically. So i think its better idea to give it a try rather then to make 50 FM seperately. i dont know if you hv used Indexed loop to its fullest. i read an article thats why i am deciding to use it. &lt;/P&gt;&lt;P&gt;  I am not in favour of Join as out tables involves more than 70k data. so i dont think it is advisable to use Join if we hv more than 50k records or in other way as records will grow in Join stmt it will be more expensive in performance wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will appreciate any reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 14:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060211#M1175980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060212#M1175981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not see all details of your problem but from performance I see big issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to select a lot of data&lt;/P&gt;&lt;P&gt;And you want to create dynamically quite a lot of different accesses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be surprised if all these access are automatically working fine. So from performance side your problem is probably not solvable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 09:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060212#M1175981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T09:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset vs Indexed nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060213#M1175982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok right now, this FM is returning all the tables in one shot and we are performing combiniing all the tables returned part in .net side: to build final table(s) and then perform some aggreagation and other display function. But as we are transferring lot of data to .net side its scaring me of network performance. so we decided to do Aggregation part on SAP server side so we will only return aggregate FM parameters instead of returnign all the tables(raw) to .net side. so yes it will effact performance but on the other side we will gain also to slow down network congestion. for example right now we are transferring say 100MB data to .net side but we need only 100kb data atlast after combinig them.&lt;/P&gt;&lt;P&gt; yes i will encounter a lot of problem during the transition thats true but i hc no choice then to do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 15:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-vs-indexed-nested-loop/m-p/5060213#M1175982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T15:47:23Z</dc:date>
    </item>
  </channel>
</rss>

