<?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>need help with fetching the data using the entity</title><link>https://community.appian.com/discussions/f/rules/39080/need-help-with-fetching-the-data-using-the-entity</link><description>Hi team i am unable to fetching the data using the query entity, due to some restrictions i have to use the CDT only so i am using query entity for fetching the data, (I want this data for displaying into the read-only grid) i have 2 tables in DB 1st</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147942?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 15:42:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b114fd5-b716-4a84-a4da-3702989e795b</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="297683" url="~/discussions/f/rules/39080/need-help-with-fetching-the-data-using-the-entity/147939"]to display whole data into Read_Only Grid[/quote]
&lt;p&gt;As I mentioned earlier, if you attempt to show tens of thousands of rows of data on a read-only grid, the form will barely load, and even if it did, the user experience would be miserable.&amp;nbsp; The MOST i&amp;#39;d ever consider all at once is maybe a hundred, and that&amp;#39;s only if it&amp;#39;s critically required (and on the simple side).&lt;/p&gt;
&lt;p&gt;Why can&amp;#39;t you just use paging?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147941?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 15:39:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c4fda08-3eaa-4b36-a836-04360ddbf368</guid><dc:creator>Dimitris Soulovaris</dc:creator><description>&lt;p&gt;The best way is to use record for sure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But I guess you could do this with queries and a read only grid field with custom pagination.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will need a query to fetch the total count, and with another query and custom pagination buttons, you could load the next/previous batch of data that you want to present in the grid at that time. So you won&amp;#39;t query the entire table but only the particular batch of data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t recommend this way as it requires a lot of effort to implement it and its tricky as the CDT should be mapped to a table with auto increament ID values enabled so you could count what the startIndex of the pagination will be each time. If the table changes drastically (i.g a view), then its an issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147939?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 15:09:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:258cc265-f2fb-4c9f-97e7-116ed6789aed</guid><dc:creator>Ram Ganesh</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;but how then we achieve this is there any another way?&lt;br /&gt;to display whole data into Read_Only Grid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147933?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 14:30:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c26b7386-6e7e-404d-9cbc-6e5eea3ea4b2</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="297683" url="~/discussions/f/rules/39080/need-help-with-fetching-the-data-using-the-entity/147905"]To display the data in Read-only grid also need&amp;nbsp;&lt;span&gt;TotalCount&lt;/span&gt;[/quote]
&lt;p&gt;I&amp;#39;m not sure how this is relevant - totalCount is returned even when you take a very small slice of the data in your query, as long as you set the &amp;quot;fetchTotalCount&amp;quot; parameter to TRUE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147931?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 14:17:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f93cc331-dece-4d7d-9346-e21e24eca7de</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;It&amp;#39;ll time out if the query is not performant (i.e. slow views, etc).&amp;nbsp; But the Memory Circuit Breaker is separate from this and will prevent a data set over a certain size from being returned.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1746713837394v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147927?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 13:07:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd8ff457-c58d-4722-8e8e-909ddbd81ed9</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;&lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;&amp;nbsp;, won&amp;#39;t the query timeout when its trying to return large data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147925?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 12:05:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:759c16aa-527c-42f5-8935-21a05c61f412</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The simple answer is: &lt;em&gt;a!queryEntity()&lt;/em&gt; has a &lt;strong&gt;&lt;span style="text-decoration:underline;"&gt;BUILT-IN SIZE LIMIT&lt;/span&gt;&lt;/strong&gt; (i.e. total amount of data returned, unrelated to the overall number of rows).&lt;/p&gt;
&lt;p&gt;And also: even if you COULD successfully query 21,568 rows of data successfully into a local variable, if you tried to display that all at once in a read-only grid, the form would either refuse to load or be MISERABLY slow.&amp;nbsp; And if you&amp;#39;re planning to page it anyway, then you should be paging it at query time, not after.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147920?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 11:40:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:956c9574-3f91-49dd-8ee9-761ad7747681</guid><dc:creator>Ram Ganesh</dc:creator><description>&lt;p&gt;if i give the column selection at that time count is changing,&lt;br /&gt;a!queryEntity(&lt;br /&gt; entity: cons!Ltable,&lt;br /&gt; query: a!query(&lt;br /&gt; pagingInfo: a!defaultValue(&lt;br /&gt; value: ri!pagingInfo,&lt;br /&gt; default: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 10&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; fetchTotalCount: true&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147918?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 11:32:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91fe337c-9013-486b-a65a-c7f958981015</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;Can you attach code screenshot as well?&lt;br /&gt;Also seems the count has increased by a 1000 now. Was any change done to the table or query?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147917?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 11:27:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a637b587-9741-4337-9335-950f86d6343a</guid><dc:creator>Ram Ganesh</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1746703640144v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147913?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:47:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca440cca-e548-4ba9-b64c-f569ac4956f8</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;Can you attach a screenshot of the code and the output?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147912?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:45:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55290fd0-dff3-49f7-8738-ff858cdff409</guid><dc:creator>Ram Ganesh</dc:creator><description>&lt;p&gt;yes, i can able too see.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147911?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:44:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5aca9255-de43-4fe3-8f03-bfd7f8f80d9f</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;In database, you are able to see 26191 rows??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147909?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:36:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a4cb9d1f-6457-4252-87bc-ff5ea1d5b48e</guid><dc:creator>Ram Ganesh</dc:creator><description>&lt;p&gt;in QUERYENTITY IF I USE TOTALFETCHCOUNT:TRUE i can see only 21568 only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147906?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:22:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ebf6a24-94ae-43fa-ab81-13c69b8e7986</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;What do you mean by you can fetch only 21568 rows?&lt;br /&gt;Where did you find this count?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147905?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:13:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce14ba91-7a13-4013-a110-2efb9cc3b386</guid><dc:creator>Ram Ganesh</dc:creator><description>&lt;p&gt;To display the data in Read-only grid also need&amp;nbsp;&lt;span&gt;TotalCount,&lt;br /&gt;&lt;br /&gt;Total count is 26191,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147902?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 08:57:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15c83584-1a9d-4db4-b69f-743349c17c99</guid><dc:creator>Dimitris Soulovaris</dc:creator><description>&lt;p&gt;Does the first table have duplicate rows?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need help with fetching the data using the entity</title><link>https://community.appian.com/thread/147900?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 08:32:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c54e4aa-6769-4d6e-a1d4-25db655dbd94</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;why do you need all these rows at once?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;what does the total count come up in 1st query?&lt;/p&gt;
&lt;p&gt;If you get data in batches are you able to get the last rows which are missing?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>