<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CDT&amp;#39;s</title><link>https://community.appian.com/discussions/f/user-interface/12413/cdt-s</link><description>what are the best practices for nested CDTs. Is there any to advantage to use view instead of nested CDTs?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CDT's</title><link>https://community.appian.com/thread/58781?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 13:52:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08caee58-da95-40b6-b693-c76e29e0d1ee</guid><dc:creator>pankajm949</dc:creator><description>Hi Divya,&lt;br /&gt;
&lt;br /&gt;
First of all, Appian recommends to use one level of nesting for CDTs. Nesting of CDTs can also impact the performance.&lt;br /&gt;
&lt;br /&gt;
Apart from these, what I have observed is If we are nesting multiple type CDT inside another multiple type nested CDT, then we cannot map the fields of last level CDT inside Process Model. Also, we cannot access properly the fields of last level CDT inside our rules and other objects.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT's</title><link>https://community.appian.com/thread/58772?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 11:51:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0992ff1a-8732-47df-9ffe-aec88269c885</guid><dc:creator>josep</dc:creator><description>Hello Divya, &lt;br /&gt;
&lt;br /&gt;
I really liked all the posts above.&lt;br /&gt;
&lt;br /&gt;
 I just wanted to add As a little background a reason for that best practice. Appian CDTs/datastore uses the “improved/simplified version” of the JPA. So one of the inheritated problems is that “nested eager relationships” (which for us in Appian is the nested CDT) because part of the simplification is that all CDTs use eager loading, which means when nested and you query the main table it will try to join all the nested CDTs/tables to get your information. So if you have 1 level nested for n amount of fields the query will join the main table + n number of nested Tables(CDTs). &lt;br /&gt;
&lt;br /&gt;
Imagine if you had multiple nested levels, that can be a huge join and problem, it means time and load to the server. Even that the JPA has certain limit on the joins let’s say 30 joins per query. &lt;br /&gt;
&lt;br /&gt;
Most of the times when you query a CDT you don’t really need all those joins and all the fields from all the tables, that’s where the views comes to play, on the views you can select each required field and you decide which joins are really required at that particular query&lt;br /&gt;
. &lt;br /&gt;
One common way to see it is you have datastore for tables and one datastore for views. The tables will be to insert/update , and the views to query and display data to the user. &lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT's</title><link>https://community.appian.com/thread/58766?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 07:21:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e36faccf-4e0d-4b2a-b5f8-96534711914c</guid><dc:creator>Preji P</dc:creator><description>hi Divya,&lt;br /&gt;
I very much agree with what Abhay has stated that we should avoid making use of Nested CDTs, as they highly impact our performance; but if your logic needs a nested CDT solution then Appian recommends you to have 1 level of nesting.&lt;br /&gt;
Hope this has answer you query.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Preji&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT's</title><link>https://community.appian.com/thread/55079?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 00:17:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd31cd29-4086-4af7-8b67-f67ac579ce75</guid><dc:creator>Abhay Giri</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;you can refer this link&amp;nbsp;&lt;a href="/discussions/f/best-practices/11277/nested-cdts"&gt;https://community.appian.com/discussions/f/best-practices/11277/nested-cdts&lt;/a&gt;&amp;nbsp;for more about nesting level, advantage &amp;amp; disadvantage.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Abhay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT's</title><link>https://community.appian.com/thread/55078?ContentTypeID=1</link><pubDate>Sun, 13 May 2018 22:37:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f98b18d6-58e9-4b48-af75-d93ac74412b5</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/divyac"&gt;divya chakka&lt;/a&gt;  as per the best practices guidelines, you can go for 1 level of nested CDT but as per my understanding, you should avoid using nested CDT approach as much as you can. Fir further details, I recommend you to visit the above link mentioned by @Dmitry&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT's</title><link>https://community.appian.com/thread/55077?ContentTypeID=1</link><pubDate>Sun, 13 May 2018 12:52:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a4788dd-74ad-45c8-ad3b-d18dc3208415</guid><dc:creator>Dmitry S</dc:creator><description>There was a good discussion with a lot of answers already on this topic. Summary: Appian generally recommends one level of nested CDTs only. More details here: &lt;a href="https://community.appian.com/discussions/f/best-practices/11277/nested-cdts"&gt;community.appian.com/.../nested-cdts&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>