<?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>Batching the query example with looping</title><link>https://community.appian.com/discussions/f/general/30154/batching-the-query-example-with-looping</link><description>Can someone help with example. How to do batching in Query. 
 I have clear understanding of how it works but need clarity while implementing. 
 Eg: create a query entity rule such as : a!queryEntity(entity: cons!entity, query: a!query(filters{whatever</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Batching the query example with looping</title><link>https://community.appian.com/thread/119949?ContentTypeID=1</link><pubDate>Fri, 29 Sep 2023 08:05:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f29b927-75e0-4c92-861d-f97830df3695</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I totally agree with your point  but when you are working on already built Application which is live, we cannot go ahead and follow all the best practice and latest features all of a sudden, we need to first make changes to existing code and make the Application work as expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So if you have solution to my question that will help me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Batching the query example with looping</title><link>https://community.appian.com/thread/119912?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2023 06:49:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b1e3821-a8a4-4f44-829b-63c20092570e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;For what purpose do you want to load 7000 records into memory? In general, this is a bad practice and not recommended!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Batching the query example with looping</title><link>https://community.appian.com/thread/119905?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2023 23:21:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a59438fc-80aa-41b8-b4d9-47235765eb1e</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/configure-record-data-source.html#syncing-in-batches"&gt;https://docs.appian.com/suite/help/23.3/configure-record-data-source.html#syncing-in-batches&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!batchSize: 100,
  local!startIndex: 1 + ((ri!batchNumber - 1) * local!batchSize),
  a!queryRecordType(
    recordType: &amp;#39;recordType!{SYSTEM_RECORD_TYPE_USER}User&amp;#39;,
    pagingInfo: a!pagingInfo(local!startIndex, local!batchSize)
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>