<?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>Performance of queryEntity and custom picker for large dataset</title><link>https://community.appian.com/discussions/f/general/18988/performance-of-queryentity-and-custom-picker-for-large-dataset</link><description>Hello, 
 I&amp;#39;m trying to configure a custom picker on a large dataset, ~7100 values. 
 The first problem I&amp;#39;m encountering is that the queryEntity() by itself takes ~8.5 seconds to complete. May this be due to the fact that the CDT of the DSE has nested</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Performance of queryEntity and custom picker for large dataset</title><link>https://community.appian.com/thread/74632?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 11:49:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5879c3c9-298b-403c-9903-3a6771839a56</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I like that idea to only perform the search if at least 3 letters are entered! You could also limit it on the other side - for example, only return the first 20 items that match to display in the picker.&lt;/p&gt;
&lt;p&gt;One other thing I have tried before too&amp;nbsp;is to use a text field and a search button for this use case. It isn&amp;#39;t quite as seamless as a picker, but you will ensure better performance because you only perform the search on click of the button. Plus, you can display the results in a grid, which would allow you to use paging if there are too many results.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Performance of queryEntity and custom picker for large dataset</title><link>https://community.appian.com/thread/74625?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 07:52:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:002ef32f-167d-4cc6-b298-351e366ad5e4</guid><dc:creator>scristalli</dc:creator><description>&lt;p&gt;Thank you Mike and Peter for the suggestions. Selecting columns was the key to boost the performance of the QueryEntity, which now takes milliseconds to execute.&lt;br /&gt;Afterwards, I still had the problem of the custom picker, as typing a single letter would result in loading a large number of items, still freezing the Javascript.&lt;/p&gt;
&lt;p&gt;For the moment, I solved by editing the expression rule I posted by not performing any search if the length of ri!filter is less than 3.&lt;br /&gt;In our particular use case, at the moment this solution is acceptable for end users, considering both UX and performance.&lt;br /&gt;&lt;br /&gt;If there is a better method to solve the issue, please suggest and I will be happy to try!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Performance of queryEntity and custom picker for large dataset</title><link>https://community.appian.com/thread/74556?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 13:30:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32b0ad91-f7c9-4e8b-9545-452c08ddc85e</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;What kind of nested CDT do you have? If you have a nested 1:M, this can have potential performance problems because it queries the parent data and queries for each of the children values separately: see the &lt;a href="https://docs.appian.com/suite/help/latest/cdt_design_guidance.html#nested-cdts"&gt;CDT Guidance&lt;/a&gt; in the documentation. Also, do you actually need the nested data in your query or can you just select columns from the parent like Mike suggested?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Performance of queryEntity and custom picker for large dataset</title><link>https://community.appian.com/thread/74553?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 12:41:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa9a1b87-6b04-4235-834c-a874770fbbf6</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;7K values does not seem large enough by itself to be causing such stress to queryEntity.&amp;nbsp; Is it a view with very cumbersome joins, or something?&lt;/p&gt;
&lt;p&gt;I would concentrate on figuring out the QueryEntity performance gap before worrying about the custom picker.&amp;nbsp; Out of curiosity, does the performance of the query operation improve significantly if you pull only a few columns, instead of the whole CDT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>