<?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 write bulk data to Appian DB using cdt?</title><link>https://community.appian.com/discussions/f/data/18345/how-to-write-bulk-data-to-appian-db-using-cdt</link><description>Hi All, 
 I am having nearly 45000 rows of data with 11 columns in CDT .Need to upload data to Appian DB without affecting performance.Kindly provide your suggestions for splitting the data into batches say 2000 rows each time and then upload data to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to write bulk data to Appian DB using cdt?</title><link>https://community.appian.com/thread/72239?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:57:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d16a95cf-1f39-4bef-b0c8-25c1dc376287</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;For your purposes it might be best to batch rows of your raw TEXT and pass into a subprocess (for example) where the parsing occurs, row-by-row, just before the DB write occurs.&amp;nbsp; In the parent process you would store a separate PV, integer type, to reflect for example which row will be the next starting point (so if you&amp;#39;ve parsed rows 1 - 10, your marker PV would store a value of &amp;quot;11&amp;quot; to indicate that the next loop will start at row 11).&lt;/p&gt;
&lt;p&gt;As with most things, I suspect you write your parser in an Expression Rule and call this expression rule from a script task in your process model.&amp;nbsp; This will allow you to paste in small chunks of your raw text format, run the rule many times and see that it returns the exact output you&amp;#39;re wanting.&amp;nbsp; I encourage you to look into the &lt;em&gt;extract()&lt;/em&gt; function, as well as the utilities available within the&amp;nbsp;&lt;em&gt;Regex Functions&lt;/em&gt; plug-in, in case either of those would make parsing easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write bulk data to Appian DB using cdt?</title><link>https://community.appian.com/thread/72238?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:52:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:887f97af-ca13-497c-b96d-cd8705fa895a</guid><dc:creator>pradeepb0001</dc:creator><description>&lt;p&gt;Thank you &lt;a href="/members/dastagirid0003"&gt;Dude&lt;/a&gt; for you reply.&lt;/p&gt;
&lt;p&gt; i will read say 10 characters from each row and map it to particular column in cdt. Similarly i will read particular place characters using mid function for remaining columns and will map it to CDT.And then have to write the data to DB in batches without affecting performance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write bulk data to Appian DB using cdt?</title><link>https://community.appian.com/thread/72237?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:46:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:426b375a-e0e6-4496-ac58-68c02a8f55b9</guid><dc:creator>Dude</dc:creator><description>&lt;p&gt;Hi Pradeep,&lt;/p&gt;
&lt;p&gt;If the dat is in database, create a scheduled process to write to database. Schedule the process in non business hours.&lt;/p&gt;
&lt;p&gt;For further details &lt;a title="Transferring/Processing Large Data Sets (ETL)" href="/w/the-appian-playbook/188/transferring-processing-large-data-sets-etl"&gt;Transferring/Processing Large Data Sets (ETL)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write bulk data to Appian DB using cdt?</title><link>https://community.appian.com/thread/72235?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:46:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecb65a61-d3d2-4af4-956e-c1e05b9aa86e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;From notepad, would you just be pasting it into Appian via an interface, or uploading the text file, etc?&amp;nbsp; I suppose either could work but would require a slightly different approach up-front.&lt;/p&gt;
&lt;p&gt;Either way, presuming that you end up with all 45,000 rows within a PV, preferably parsed into a CDT array, you can create a looping process that takes, for example, 1,000 rows at a time, stores them in a separate PV (overwriting the previous contents of that separate PV), writes that to the DB, then moves onto the next set.&amp;nbsp; I&amp;#39;ve done this before and assuming it&amp;#39;s not something that needs to be done routinely / constantly, it should work well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that if&amp;nbsp;this process is something that will need to be done more often, you will need to consider further safety checks (like handling empty data, making sure the loop doesn&amp;#39;t try to execute infinitely many times, etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write bulk data to Appian DB using cdt?</title><link>https://community.appian.com/thread/72234?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:41:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6c2f9c2-c96c-474a-9925-8346494149aa</guid><dc:creator>pradeepb0001</dc:creator><description>&lt;p&gt;First the data will be provided in notepad file,then i will convert&amp;nbsp; and map the data into cdt using expression rules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write bulk data to Appian DB using cdt?</title><link>https://community.appian.com/thread/72232?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:32:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a3b6468-1590-49d4-beb5-9029e3637aaa</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This largely depends on where your 45000 rows of data are currently located.&amp;nbsp; Is it in some running process already?&amp;nbsp; Or in an excel file?&amp;nbsp; Or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>