<?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: ABAP CDS views - SQL trace in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687027#M1946079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting though.&lt;/P&gt;&lt;P&gt;The CDS view works like normal view. It will join first and put filter afterwords, but the SQL optimiser will behave differently when we see PlanViz for different SQL. Better please follow the blog to see few example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="106464" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Under the HANA hood of an ABAP CDS View" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use my code I use for performance analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the table data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;DELETE FROM explain_plan_table WHERE statement_name = 'Chandan';&lt;/P&gt;
&lt;P&gt;EXPLAIN PLAN SET STATEMENT_NAME = 'Chandan' FOR&lt;/P&gt;
&lt;P&gt;select top 100 * from MY_SCHEMA.ZTAB;&lt;/P&gt;
&lt;P&gt;select * from explain_plan_table WHERE statement_name = 'Chandan';&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 03:31:12 GMT</pubDate>
    <dc:creator>chandan_praharaj</dc:creator>
    <dc:date>2016-04-21T03:31:12Z</dc:date>
    <item>
      <title>ABAP CDS views - SQL trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687026#M1946078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have plans to write ABAP CDS views to standardize business logic/data extraction so that development team can make simple queries on CDS views. So we are writing generic CDS views means without many "WHERE" conditions.&lt;/P&gt;&lt;P&gt;I'm trying to understand how it works and impact on the performance when these CDS views are consumed for any particular Plant or Company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us&amp;nbsp; say I have below CDS view called "ZCDSV_TEST" &lt;/P&gt;&lt;P&gt;select * from vbak inner join vbap on vbak.vbeln = vbap.vbeln&amp;nbsp; { &amp;lt;fields&amp;gt; }.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to understand when it is consumed in 2 ways in terms of performance (SQL)&lt;/P&gt;&lt;P&gt;Select * from ZCDSV_TEST&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; 1M records&lt;/P&gt;&lt;P&gt;Select * from ZCDSV_TEST WHERE Vkorg = '0001'&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt; 25K records.( Does this extract 1M records first and then apply WHERE condition to get to 25K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to understand these type of technical details. Appreciate your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;Laks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 22:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687026#M1946078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-20T22:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS views - SQL trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687027#M1946079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting though.&lt;/P&gt;&lt;P&gt;The CDS view works like normal view. It will join first and put filter afterwords, but the SQL optimiser will behave differently when we see PlanViz for different SQL. Better please follow the blog to see few example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="106464" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Under the HANA hood of an ABAP CDS View" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use my code I use for performance analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and see the table data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;DELETE FROM explain_plan_table WHERE statement_name = 'Chandan';&lt;/P&gt;
&lt;P&gt;EXPLAIN PLAN SET STATEMENT_NAME = 'Chandan' FOR&lt;/P&gt;
&lt;P&gt;select top 100 * from MY_SCHEMA.ZTAB;&lt;/P&gt;
&lt;P&gt;select * from explain_plan_table WHERE statement_name = 'Chandan';&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 03:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687027#M1946079</guid>
      <dc:creator>chandan_praharaj</dc:creator>
      <dc:date>2016-04-21T03:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS views - SQL trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687028#M1946080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This blog has got great details that I'm looking for.. Thanks Chandan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 05:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687028#M1946080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-25T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP CDS views - SQL trace</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687029#M1946081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kindly mark the answer as helpful, if it helped. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 23:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cds-views-sql-trace/m-p/11687029#M1946081</guid>
      <dc:creator>chandan_praharaj</dc:creator>
      <dc:date>2016-04-25T23:53:19Z</dc:date>
    </item>
  </channel>
</rss>

