<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to insert into db in order file contains the data using PutFile or PutDatabaseRecord in NiFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-into-db-in-order-file-contains-the-data-using/m-p/392712#M248218</link>
    <description>&lt;P&gt;I have a simple file having say 1000 lines each of which contains say username and useraddress. I need to insert it into db. How to insert it in order. I am able to use PutFile and PutDatabaseRecord both for the insertion purpose. But they insert randomly in any order. I wanted it to be inserted in the same order it is present in the file.&lt;/P&gt;&lt;P&gt;How to do that.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 15:42:46 GMT</pubDate>
    <dc:creator>AlokKumar</dc:creator>
    <dc:date>2024-08-28T15:42:46Z</dc:date>
    <item>
      <title>How to insert into db in order file contains the data using PutFile or PutDatabaseRecord in NiFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-into-db-in-order-file-contains-the-data-using/m-p/392712#M248218</link>
      <description>&lt;P&gt;I have a simple file having say 1000 lines each of which contains say username and useraddress. I need to insert it into db. How to insert it in order. I am able to use PutFile and PutDatabaseRecord both for the insertion purpose. But they insert randomly in any order. I wanted it to be inserted in the same order it is present in the file.&lt;/P&gt;&lt;P&gt;How to do that.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 15:42:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-into-db-in-order-file-contains-the-data-using/m-p/392712#M248218</guid>
      <dc:creator>AlokKumar</dc:creator>
      <dc:date>2024-08-28T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert into db in order file contains the data using PutFile or PutDatabaseRecord in NiFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-into-db-in-order-file-contains-the-data-using/m-p/393077#M248329</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114561"&gt;@AlokKumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to understand the context here.&amp;nbsp; &amp;nbsp;It would help to get to right solution if you can explain why the inserts into same table should be executed in certain order.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, Nifi Connection configuration settings have prioritizers.&amp;nbsp; Please check screenshot below..&lt;/P&gt;&lt;P&gt;If you are able to set attribute "priority" with desired number, "PriorityAttributePrioritizer" can be used.&amp;nbsp; Please note that these prioritizers operate on node level.&amp;nbsp; You may have to test these if you have multi node nifi environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a processor "EnforceOrder" which has more options to enforce execution order.&amp;nbsp; You may check this processor and find out if it works.&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/nifi2.0-m4/org.apache.nifi.processors.standard.EnforceOrder/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/nifi2.0-m4/org.apache.nifi.processors.standard.EnforceOrder/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shiva239_0-1725483625036.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41657iE3B865A953207A3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="shiva239_0-1725483625036.png" alt="shiva239_0-1725483625036.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 21:51:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-into-db-in-order-file-contains-the-data-using/m-p/393077#M248329</guid>
      <dc:creator>shiva239</dc:creator>
      <dc:date>2024-09-04T21:51:34Z</dc:date>
    </item>
  </channel>
</rss>

