<?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>Using Query Database Smart Service</title><link>https://community.appian.com/discussions/f/process/10219/using-query-database-smart-service</link><description>Hello friends, 
 I&amp;#39;m attempting to use the &amp;quot;Query Database&amp;quot; smart service to connect to an external database and I&amp;#39;m running into some issues. I&amp;#39;ve successfully connected to the external database and my select statement is a simple SELECT _____ FROM ______</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/61642?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 06:07:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:224db984-dcd4-46b9-bdd9-4c82579319fa</guid><dc:creator>amans</dc:creator><description>thanks, I have deleted the suggestion&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/61619?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 13:40:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50df8c80-1686-4b86-800f-b9d4edfafeba</guid><dc:creator>Mike Cichy</dc:creator><description>&lt;a href="/members/amans"&gt;amans&lt;/a&gt; This is a VERY dangerous design, please do not recommend or even suggest it to anyone. You are not only exploding the kdb cache with a series of gigantic unique strings, but you are also exploding the app server heap.&lt;br /&gt;
I can&amp;#39;t think of a single use case where bringing 600K record into memory at once was a must.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/61608?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 04:26:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b54dcb39-73d6-4cc8-86c4-e9a78052b256</guid><dc:creator>Shanmukha</dc:creator><description>Hi I would agree with &lt;a href="/members/coltonb"&gt;Colton Beck&lt;/a&gt; and &lt;a href="/members/mike.cichy"&gt;Mike Cichy&lt;/a&gt; . You can implement the looping concept but please note that, the more data that you are pulling in the memory is not of much use. Even if you want to do any validation on the huge records will lead you performance degrade. So I would suggest please redesign the scenario according to appian DB data best practices.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/61606?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 00:54:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9874c975-baa4-40a0-92f4-e2080a26504d</guid><dc:creator>amans</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/45142?ContentTypeID=1</link><pubDate>Mon, 01 May 2017 15:33:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d2748b5-002f-40a9-8a8b-0ed6030d02d7</guid><dc:creator>Mike Cichy</dc:creator><description>I agree with Colton and I would HIGHLY recommend AGAINST pulling in this many records into process. The limit of 1000 is there in place for a good reason. I am not sure what you are trying to do with that data but there are better ways to transfer/process this amount of data.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/45134?ContentTypeID=1</link><pubDate>Mon, 01 May 2017 07:15:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66aa6657-d0f5-45ea-ab2d-5abd343d4068</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>Hi,&lt;br /&gt;
   Using of OFFSET in SQL query, which give you the functionality of BatchSize, SELECT ____________ FROM _______ OFFSET @StartIndex ROWS FETCH NEXT @BatchSize ROWS ONLY&lt;br /&gt;
&lt;br /&gt;
 Initially @StartIndex  = 0 and @BatchSize  = 1000 on the second loop Increase the StartIndex @StartIndex = @BatchSize + @StartIndex&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/45128?ContentTypeID=1</link><pubDate>Sat, 29 Apr 2017 06:27:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43955ee3-3662-4161-89b7-b7c62a4c9a7e</guid><dc:creator>aloks0189</dc:creator><description>&lt;a href="/members/brendenh"&gt;BrendenH&lt;/a&gt; I think you should look into this URL&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://forum.appian.com/suite/help/7.7/Configuring_Relational_Databases.html#Row_Return_Limits_for_the_Query_Database_Smart_Service"&gt;forum.appian.com/.../Configuring_Relational_Databases.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Query Database Smart Service</title><link>https://community.appian.com/thread/45117?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 13:51:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91362755-519b-4079-b0d3-47808a427ee3</guid><dc:creator>Colton Beck</dc:creator><description>The QD smart service caps results at 1,000. I&amp;amp;#x27;d recommend against pulling 600,000 records into process, but if you must, you could loop the node updating that startIndex value of the select statement until you&amp;amp;#x27;ve pulled them all.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>