<?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 Problems on CDS Views performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692225#M1946382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having problems with CDS View now, I have a table ACDOCA which has 400 million rows, and in the CDS View(say CDS View Main),&amp;nbsp; ACDOCA(only some fields are used) is used to join 3 other tables.&lt;/P&gt;&lt;P&gt;And I found in PlanViz that all 400 million rows are used to do the join, it consumes a log memory and VERY SLOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write a CDS view(CDS View Agg) in which I select the used fields from ACDOCA and do the aggregation, the result is about 1 million rows, then I use CDS View Agg in CDS View Main to replace ACDOCA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this should solve the performance problem, but it didn't. In PlanViz I still see 400 million in join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help how to avoid doing such weird thing, I don't think there's any benifit in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Blangero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2016 09:32:29 GMT</pubDate>
    <dc:creator>former_member231903</dc:creator>
    <dc:date>2016-04-26T09:32:29Z</dc:date>
    <item>
      <title>Problems on CDS Views performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692225#M1946382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having problems with CDS View now, I have a table ACDOCA which has 400 million rows, and in the CDS View(say CDS View Main),&amp;nbsp; ACDOCA(only some fields are used) is used to join 3 other tables.&lt;/P&gt;&lt;P&gt;And I found in PlanViz that all 400 million rows are used to do the join, it consumes a log memory and VERY SLOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write a CDS view(CDS View Agg) in which I select the used fields from ACDOCA and do the aggregation, the result is about 1 million rows, then I use CDS View Agg in CDS View Main to replace ACDOCA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this should solve the performance problem, but it didn't. In PlanViz I still see 400 million in join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help how to avoid doing such weird thing, I don't think there's any benifit in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Blangero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 09:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692225#M1946382</guid>
      <dc:creator>former_member231903</dc:creator>
      <dc:date>2016-04-26T09:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problems on CDS Views performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692226#M1946383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blangero,&lt;/P&gt;&lt;P&gt;can you be a bit more concrete? e.g. what is the SELECT statement on top of the view? which data do you really need? Do you have a WHERE condition? If not, then any aggregation would have always to read the complete table.&lt;/P&gt;&lt;P&gt;Can you do the aggregations before joining the other tables? Might be faster ...&lt;/P&gt;&lt;P&gt;Regards, Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 11:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692226#M1946383</guid>
      <dc:creator>thomasgauweiler</dc:creator>
      <dc:date>2016-04-26T11:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problems on CDS Views performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692227#M1946384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The details are kind of too much and annoying, sorry for me confuse I brought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I did is just what you suggested, do the aggregations before joining the other tables,&lt;/P&gt;&lt;P&gt;I did the aggregation in "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;CDS View Agg", seen from HANA SQL the aggregation works well and the data amount are much less.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;But when I use "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;CDS View Agg " in my previous CDS View, and seen in PlanViz, the aggregation didn't happen at all... &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 11:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692227#M1946384</guid>
      <dc:creator>former_member231903</dc:creator>
      <dc:date>2016-04-26T11:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems on CDS Views performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692228#M1946385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;One suggestion Mr Blangero , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;try grouping within the CSD join the tables required and the DB layer will assume the load. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 19:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-on-cds-views-performance/m-p/11692228#M1946385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-26T19:13:47Z</dc:date>
    </item>
  </channel>
</rss>

