<?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>Facing issue in expression while querying the data</title><link>https://community.appian.com/discussions/f/data/34761/facing-issue-in-expression-while-querying-the-data</link><description>Hi Team, 
 
 While querying the data from database I am Geeting error msg like I have given batch size 1, -1y, I want to retrieve all data from database view table(6500 rows) 
 Can you please help me on this. 
 Thanks, 
 Nag</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134128?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 09:50:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3655ca8d-028d-4caf-a3bc-8ed4ffb3c4ea</guid><dc:creator>Harsh Kumar Agarwal</dc:creator><description>&lt;p&gt;Use Appian record to create the grid and Appian will automatically solve the batch size issue for you.&lt;/p&gt;
&lt;p&gt;Alternatively, if you are pulling data in a local variable first and use that to render the grid then make sure the query of local variable and paging grid shares the same paging info. This way you will only pull the rows needs to display in one page of grid and limits the batch size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134124?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 07:11:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7c7611e-496d-46d5-881c-78a3100757b9</guid><dc:creator>ganesh_sasank18</dc:creator><description>&lt;p&gt;Can you try calling rule in data&amp;nbsp;keyword in grid and pass fv!paginginfo to paginginfo rule input without using local variable&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134120?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 07:06:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:658c6719-8f03-4603-bb5d-57e472b6bf8f</guid><dc:creator>Unnam Nageswara Rao</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/16/pastedimage1713942317429v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;In grid I am passing local data&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/16/pastedimage1713942363491v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134115?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:54:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3070a5b2-42df-4c37-85ee-9095fe6c8462</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;hi&amp;nbsp;&amp;nbsp; May I Know the requirement for querying the whole data. filter the columns you need from the&amp;nbsp;data set&amp;nbsp;and display, Calling whole data at once may lead to memory and timeout issues, Also may i know is it a table or view you are using to retrieve the data. Add indexes to the required columns and retrieve the columns you need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134111?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:41:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:556e33e0-5aed-4d29-a6ed-188ca246d1aa</guid><dc:creator>ganesh_sasank18</dc:creator><description>&lt;p&gt;Can you share the code where you are calling this rule in the grid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134110?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:33:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb254f4f-cbc4-485a-a187-d510875e0d6f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry, but that will never work. That will result in a slow UI and a bad UX. Besides hitting the memory restrictions of Appian.&lt;/p&gt;
&lt;p&gt;You will have to implement that in a way you only display a certain subset of the data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134109?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:33:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af772275-a523-494c-a35d-8790771d1c72</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;I would say show few columns in the grid by minimizing the amount of data that you query and try to have a summary where you can display the whole data of that particular selection. That would be a better option. If you have too many columns your grid would look clumsy anyway. So I would&amp;nbsp;consider few points from Rohit&amp;#39;s suggestion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134107?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:27:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bf60698-974b-436d-b1a1-372844ef2f01</guid><dc:creator>Unnam Nageswara Rao</dc:creator><description>&lt;p&gt;I Need to show all the data into Grid in UI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134106?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 06:25:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfa4d0b3-657c-4b6b-94aa-34580e3bfff7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;For what purpose do you try to load the whole table into memory?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134100?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 05:43:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0446a1a7-76ad-468f-a0ae-102a079a9ae5</guid><dc:creator>Rohit Mehta</dc:creator><description>&lt;p&gt;&amp;nbsp;:&lt;/p&gt;
&lt;p&gt;You are attempting to retrieve all data from a view in a single QE hit, which is not considered best practice and should generally be avoided. I am not fully aware of the specifics of your use case, but it is necessary to revise your approach, especially as the data in the view will continue to grow and you are using a batch size of -1.&lt;/p&gt;
&lt;p&gt;Consider the following alternative approaches:&lt;/p&gt;
&lt;p&gt;1. Retrieve only a specific number of rows.&lt;br /&gt;2. Use aggregation to decrease the number of rows.&lt;br /&gt;3. Limit the number of columns in the QE.&lt;br /&gt;4. Execute a stored procedure (SP) and limit the data retrieved.&lt;br /&gt;5. Alternatively, you can transfer the data from the view into a table and perform the QE on that table.&lt;/p&gt;
&lt;p&gt;Please provide more details about your use case so that we can suggest a more tailored approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing issue in expression while querying the data</title><link>https://community.appian.com/thread/134099?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 05:39:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9409d741-d814-4d7a-85df-b54598bd3219</guid><dc:creator>venkatrea696188</dc:creator><description>&lt;p&gt;It seems you are pulling large data (More than 1 MB) ,there is a support case related to this error , go through it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/support/w/kb/686/kb-1411-memory-threshold-reached-during-output-conversion"&gt;https://community.appian.com/support/w/kb/686/kb-1411-memory-threshold-reached-during-output-conversion&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>