<?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>Get data from the Database - process model</title><link>https://community.appian.com/discussions/f/process/20840/get-data-from-the-database---process-model</link><description>Hello community, 
 Could you please advise me. I am trying to figure out how handle some timeout or problem during get data from database. For the displaying partly of my interface I need to get data from the Database. This data is not mandatory only</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get data from the Database - process model</title><link>https://community.appian.com/thread/87060?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 10:04:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48f19340-725e-4ba5-aa10-2fa86f44a3ab</guid><dc:creator>KM</dc:creator><description>&lt;p&gt;Hi Barat,&lt;/p&gt;
&lt;p&gt;Even I have similar question get data from DB - using process model. could you please tell more detail of option 3, i.e C.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from the Database - process model</title><link>https://community.appian.com/thread/81195?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 07:02:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49a29cd1-c5cd-4cbd-b651-ac53816d7629</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The problem with this is that you import&amp;nbsp;infrastructure issues into the application. This kind of issues must be solved on infrastructure level. I know, this might sound a bit ignorant. Our typical apps rely on external systems and overall reliability is the sum of each systems reliability.&lt;/p&gt;
&lt;p&gt;If you need to manage technical time outs, your UI will lack and your users will not be happy. Nobody wants to wait for &amp;gt;10 seconds.&lt;/p&gt;
&lt;p&gt;One officially supported option could be to use a synchronized record. Then data is local. But it might be that this does not work in your case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from the Database - process model</title><link>https://community.appian.com/thread/81194?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 06:47:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:293ea447-d0af-40a6-92ed-9bca69819478</guid><dc:creator>kukapavol</dc:creator><description>&lt;p&gt;Hello Barat,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your answer, but my question was about protentional performance issue in the future. I am trying to build application which must be available almost in 100%. I am just considering how to ensure that application will work in the case if the database which contains not mandatory information from application perspective will be unavailable. I am trying to develop mechanism which use data from the database if the database will be &amp;quot;healthy&amp;quot; and in the case if database will be not healthy (timeout or unavailable) - loading the data use for my interface will skip. But this is UI - therefore maybe only complicated ways how to do it are available.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;I know that I can resolve it by using Boolean value - on the basis the value the interface will use or not will use data from database. But I need know the Boolean value at the beginning of showing the interface.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am just thinking - how verify status of the database and on the basis the status of the database make decision whether data from database will be used or not during loading the interface.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Pavol&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get data from the Database - process model</title><link>https://community.appian.com/thread/81190?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 06:17:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e584832-410f-4afb-baac-deaeff653325</guid><dc:creator>baratc</dc:creator><description>&lt;p&gt;Hi Pavol,&lt;/p&gt;
&lt;p&gt;Based on my experience , im sharing the following options.&amp;nbsp; Recently I tried&amp;nbsp; below 3 options and option 3 helped me .&lt;/p&gt;
&lt;p&gt;1) Execute the SQL in backend and&amp;nbsp; verify the performance. Please create the expression rule and query the data from appian and verify the response. if the response is timing out .&lt;/p&gt;
&lt;p&gt;a) Check if your querying table or view. Make sure to pass the filters (if possible pls include primary key).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;b)If your querying view, please see whether you can fine tune the sql or if table&amp;nbsp;try adding indexes/partitions (DBA can help)&lt;/p&gt;
&lt;p&gt;c)if above options&amp;nbsp; didn&amp;#39;t work , create stored procedure to query the data and call the procedure from the process model using smart service or from expression rue using function.&lt;/p&gt;
&lt;p&gt;Please let me know if you find any challenges.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks,barat&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>