<?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>How to get data from db in optimized way.</title><link>https://community.appian.com/discussions/f/data/29406/how-to-get-data-from-db-in-optimized-way</link><description>Hi All, 
 i am developing an application in whcih I have to fetch all the records from table. now the problem in doing so is while running the expression tule it&amp;#39;s failing which i think is failing because i am fetching everything at a time. 
 I want to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116519?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:41:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d5035200-a067-4097-8581-90d5d23603c5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not have an example at hand. Writing a stored procedure for MariaDB/MySQL is covered in stackoverflow.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.2/Execute_Stored_Procedure_Smart_Service.html"&gt;docs.appian.com/.../Execute_Stored_Procedure_Smart_Service.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116516?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:22:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c7f844c-1cc5-446c-9567-3de8324823b7</guid><dc:creator>sourabh2512</dc:creator><description>&lt;p&gt;thats what I am doing buddy,, but in order to not writing duplicate data i have to compare the appian report with the existing data in db ryt ? so while doing so first I am fetching everything from the db and then comparing and now while fetching it&amp;#39;s causing issue due to big size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116514?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:20:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b37cf25c-7d28-44f8-908d-99324f4cb37b</guid><dc:creator>Ignacio Mor&amp;#225;n</dc:creator><description>&lt;p&gt;I would recommend according to the data you need, to create a specific table and saving/updating data directly from the process models and not trying to do it duplicating a report. Are you auditing changes? that might could be the data you need..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116513?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:20:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfb6945d-13b0-426b-911c-cac388cff020</guid><dc:creator>sourabh2512</dc:creator><description>&lt;p&gt;my ultimate goal is to write unique rows in the table.. so that can be done by using procedue as well ryt ? do you have any example for that like how to write data passed from appian using procedure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116512?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:10:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c137ad85-eb75-43cf-9cac-a16b8119c343</guid><dc:creator>sourabh2512</dc:creator><description>&lt;p&gt;we want to keep the data to be used for further analysis by other teams,, in appian data would not be persisted always ryt ? and we need that data so keeping it in a database.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116511?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:09:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76939aa8-496d-462a-9cb8-59b3987ab132</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I understand. Does not work. You will have to find a way to NOT load ALL data and try to manipulate it in Appian memory.&lt;/p&gt;
&lt;p&gt;Without knowing what all this data manipulation is for, an idea might be to first store that data to a temporary table and then run a stored procedure to do that merging operation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116510?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:09:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7bb1980-fde3-4a08-baa0-b7e3353545e5</guid><dc:creator>Ignacio Mor&amp;#225;n</dc:creator><description>&lt;p&gt;Why would you like to copy data from reports every day to the DB? What is the purpose?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116509?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 08:06:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c63b9a4f-179d-4434-a492-c262e7114731</guid><dc:creator>sourabh2512</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Use case is I want to store the appian process metrics and task metrics data from the Appian report to Oracle DB.&lt;/p&gt;
&lt;p&gt;Now in order to achieve that I am running my process everynight and what it does is it first fetch all the process metrics data from table and then from Appian process metrics report and after that it finds the unique enteries and then write to database.. this is the use case..&lt;br /&gt;and pfb the ss for the erroR:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1689840310662v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116504?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 07:46:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ca605f8-3652-440e-ac50-4cf46bed5ea6</guid><dc:creator>sourabh2512</dc:creator><description>&lt;p&gt;so there is a table which my&amp;nbsp;appian process is updating from the appian reports.&lt;br /&gt;Now in order to update it, it&amp;#39;s first fetching everything from the table and then fetching data from the appian report and after comparing and finding the unique values it&amp;#39;s writing those rows into the table. this is what I want to achieve.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116499?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 06:44:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80904bb2-e96d-4056-8b53-d35c95808fea</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You can, and should not, try to load &amp;quot;all&amp;quot; rows. Please help us to understand what you want to achieve.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get data from db in optimized way.</title><link>https://community.appian.com/thread/116497?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 05:59:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a168fb9-34ee-4852-80c5-8a47b71aeddd</guid><dc:creator>Ignacio Mor&amp;#225;n</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Please could you add more information regarding the use case?&lt;/p&gt;
&lt;p&gt;Could you add a screenshot of the error you get while fetching?&lt;/p&gt;
&lt;p&gt;Could you also explain why do you need to fetch everything at the same time?&lt;/p&gt;
&lt;p&gt;Are you using records?&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>