<?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 Increasing from Complex Select query with Joins on table having huge records. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360492#M1993153</link>
    <description>&lt;P&gt;Also, if you avoid the join and aggregation, you also miss data and need to select again and do calculations with the data later, so that is probably not be an improvement performance-wise...&lt;/P&gt;&lt;P&gt;Are you selecting 5 000 000 000 records, or is that the size of the table? How many records are you selecting? And how long does this query take now? Is it really slow?&lt;/P&gt;&lt;P&gt;And then it's also dependent on which database you are using? And for these volumes, how much memory is available in the DB and in the server? What are you doing with the data afterwards? Why are you selecting this? etc...&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 18:38:51 GMT</pubDate>
    <dc:creator>joltdx</dc:creator>
    <dc:date>2021-02-24T18:38:51Z</dc:date>
    <item>
      <title>Performance Increasing from Complex Select query with Joins on table having huge records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360490#M1993151</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I came across a select query which have joins and getting data from a table have record around 4708000500 records. &lt;/P&gt;
  &lt;P&gt;select query is like this:&lt;/P&gt;
  &lt;P&gt;SELECT DbTableName~bukrsMIN( DbTableName~abg_jahr ) AS abg_jahrMIN( DbTableName~abg_monat ) AS abg_monatSUM( DbTableName~betrag ) AS betragSUM( DbTableName~mwst_betrag ) AS mwst_betrag&lt;BR /&gt; DbTableName~ablif DbTableName~koart DbTableName~abg_datum DbTableName~abg_ze&lt;BR /&gt; DbTableName~simu_kz &lt;BR /&gt; abgpro~abgrstep FROM DbTableName AS DbTableName&lt;BR /&gt; INNER JOIN abgpro AS abgpro ON abgpro~abgid EQ DbTableName~abgid &lt;BR /&gt;INTO CORRESPONDING FIELDS OF TABLE it_DbTableNameWHERE DbTableName~abg_jahr = s_gjahrAND DbTableName~abg_monat = s_monatAND DbTableName~bukrs IN r_bukrsAND DbTableName~storno_kz = ' 'AND DbTableName~simu_kz = s_simu "' ' &lt;/P&gt;
  &lt;P&gt;GROUP BY DbTableName~ablif DbTableName~bukrs DbTableName~koart DbTableName~abg_datum DbTableName~abg_zeit&lt;BR /&gt; DbTableName~simu_kz &lt;BR /&gt; abgpro~abgrstep ORDER BY DbTableName~ablif DbTableName~bukrs DbTableName~koart DbTableName~abg_datum DbTableName~abg_zeit&lt;BR /&gt; DbTableName~simu_kz &lt;BR /&gt; abgpro~abgrstep.&lt;/P&gt;
  &lt;P&gt;We know that we can simplify the select query by avoiding joins and aggregation etc.&lt;/P&gt;
  &lt;P&gt;But My questions are:-&lt;/P&gt;
  &lt;P&gt;1. On what we should focus to improve the performance?&lt;/P&gt;
  &lt;P&gt;2. What are the things we should keep in mind while dealing with this kind of big table?&lt;/P&gt;
  &lt;P&gt;3. If at all we increase the performance, how significantly it can be?&lt;/P&gt;
  &lt;P&gt;Thank you so much in advance .&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 16:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360490#M1993151</guid>
      <dc:creator>former_member628875</dc:creator>
      <dc:date>2021-02-24T16:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Increasing from Complex Select query with Joins on table having huge records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360491#M1993152</link>
      <description>&lt;P&gt;Database performance is a very complex thing to explain in few lines, so my recommendation is to hire a database administrator + expert in the concerned functional domain/database model.&lt;/P&gt;&lt;P&gt;Okay just one hint: look at the execution plan, it explains what choice the database does.&lt;/P&gt;&lt;P&gt;Do you really extract 5 billion lines? That's the problem, it can only be slow &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 17:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360491#M1993152</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-02-24T17:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Increasing from Complex Select query with Joins on table having huge records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360492#M1993153</link>
      <description>&lt;P&gt;Also, if you avoid the join and aggregation, you also miss data and need to select again and do calculations with the data later, so that is probably not be an improvement performance-wise...&lt;/P&gt;&lt;P&gt;Are you selecting 5 000 000 000 records, or is that the size of the table? How many records are you selecting? And how long does this query take now? Is it really slow?&lt;/P&gt;&lt;P&gt;And then it's also dependent on which database you are using? And for these volumes, how much memory is available in the DB and in the server? What are you doing with the data afterwards? Why are you selecting this? etc...&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 18:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360492#M1993153</guid>
      <dc:creator>joltdx</dc:creator>
      <dc:date>2021-02-24T18:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Increasing from Complex Select query with Joins on table having huge records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360493#M1993154</link>
      <description>&lt;P&gt; @&lt;SPAN class="mention-scrubbed"&gt;jorgen_lindqvist41&lt;/SPAN&gt; &amp;amp; @&lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;: Thank you so much for your comments. Answering to your question. &lt;/P&gt;&lt;P&gt;This is the number of records in the Table. &lt;/P&gt;&lt;P&gt;How many records are you selecting: Not sure, of course not all but large ammount. like this, the report has another query. Due to this, it takes so many hours like 5 to 6 hours(Sometimes it also get timeout). This is really slow. &lt;/P&gt;&lt;P&gt;It's an ECC system, not a HANA database. &lt;/P&gt;&lt;P&gt;How much memory in the server: I Don't know will try to find out.Just wanted to know how significant it can be.&lt;/P&gt;&lt;P&gt; This is a report for analysis mostly.&lt;/P&gt;&lt;P&gt;My question: Is it possible to increase the performance by improving the select query? In this situation where DB is not HANA and having 5BN of records.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 21:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360493#M1993154</guid>
      <dc:creator>former_member628875</dc:creator>
      <dc:date>2021-02-25T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Increasing from Complex Select query with Joins on table having huge records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360494#M1993155</link>
      <description>&lt;P&gt;What database is using your ECC system? It's very important to tell, so that people can better help!&lt;/P&gt;&lt;P&gt;Did you try to analyze the execution plan? (search the Web if you don't know what it means, then ask more precise questions after that)&lt;/P&gt;&lt;P&gt;Did you try to parallelize the query?&lt;/P&gt;&lt;P&gt;Etc.&lt;/P&gt;&lt;P&gt;Search the Web for additional hints concerning improving performance for your specific database. Not SAP forums (except if it's Sybase).&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 08:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-increasing-from-complex-select-query-with-joins-on-table-having/m-p/12360494#M1993155</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-02-26T08:58:33Z</dc:date>
    </item>
  </channel>
</rss>

