<?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>data coming very late from DB and sometimes timing out</title><link>https://community.appian.com/discussions/f/data/19788/data-coming-very-late-from-db-and-sometimes-timing-out</link><description>Hello Team, 
 We replicated our production application database into test environment to recreate some issue and observed a new issue. 
 
 On record type it is timing out, we started checking record type and on Default Filters we have id selected and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: data coming very late from DB and sometimes timing out</title><link>https://community.appian.com/thread/77453?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 03:38:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f374d49d-9ff9-46d6-9b61-0bc29da507ee</guid><dc:creator>gauravp0004</dc:creator><description>&lt;p&gt;Thank you all for response. Came to know that Appian cloud database as have very less resources as compare to PROD . we were using cloud database so was not sure on resources part.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data coming very late from DB and sometimes timing out</title><link>https://community.appian.com/thread/77439?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 13:14:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:78e2e5d2-921b-47b1-a301-175994f95e66</guid><dc:creator>Praful Singhal</dc:creator><description>&lt;p&gt;As Appian is written in java so it has 2 objects, 1 controller, and 1 service class to map database object to the Appian CDT object.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Data Transformation Object&lt;/p&gt;
&lt;p&gt;Data Acces Object&lt;/p&gt;
&lt;p&gt;Which are mapped using a transformation service class. So basically it&amp;#39;s a web API(with paginated) call which we are under presumption its a database call. Whenever there is a probability of a huge data set, I would recommend a stored procedure with pagination. I am sooner going to blog about this with the detailed performance of Appian database connections. I have already written one article on this aspect &amp;quot;&lt;a href="https://www.linkedin.com/pulse/microservices-vs-appianbuild-microservice-praful-singhal/?trackingId=Ig3w6S0pSvi0arXGOMWgBw%3D%3D"&gt;https://www.linkedin.com/pulse/microservices-vs-appianbuild-microservice-praful-singhal/?trackingId=Ig3w6S0pSvi0arXGOMWgBw%3D%3D&amp;quot;&lt;/a&gt;. I am now planning to deep dive into it with my next article coming on this weekend, hope my next article will help you understand the root cause and take you in the right step in direction of store procedures.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data coming very late from DB and sometimes timing out</title><link>https://community.appian.com/thread/77429?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 20:32:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2863e3a-69df-4a52-9a1f-48a54ee9f46d</guid><dc:creator>Scott Milton</dc:creator><description>&lt;ul&gt;
&lt;li&gt;Are these appian cloud databases?&lt;/li&gt;
&lt;li&gt;Although the data is the same on the table, are the indexes on the table the same as well?&amp;nbsp; Sometimes indexes are added in one environment manually but not the others.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data coming very late from DB and sometimes timing out</title><link>https://community.appian.com/thread/77395?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 16:49:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:131872ae-548a-4631-9ca2-795817f854ca</guid><dc:creator>gauravp0004</dc:creator><description>&lt;p&gt;Thank you . Will take a look . but still trying to find a reason when data is same why working on prod and not on test. One more pointer in cloud database on test view is taking time to load data and when sorting on id it is taking more than 13 seconds, on prod less then 1 second.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data coming very late from DB and sometimes timing out</title><link>https://community.appian.com/thread/77394?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 16:41:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d8e5878-9bc4-4568-8db0-51bf3201af13</guid><dc:creator>ChristineLHutchison</dc:creator><description>&lt;p&gt;Some thoughts that might be worth looking into&lt;br /&gt;1. Run explain plan on your view. Is it doing any full table scans that can be removed&amp;nbsp;&lt;br /&gt;2. Is the ID field a PK or a field that has an index&lt;br /&gt;3. Since it looks like you are trying to convert the resulting set to integer in Appian, can you change the view to have that column as an integer and remove the tointeger&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>