<?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 Re: NiFi - How can i change ReplacementValue on ReplaceText ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-How-can-i-change-ReplacementValue-on-ReplaceText/m-p/335827#M232039</link>
    <description>&lt;P&gt;The flow that you are trying to implement is not very efficient and it's hard to achieve what you want to do in that way.&lt;/P&gt;&lt;P&gt;You should try to refactor it using record-based processors, which is much simpler and more efficient to handle a large number of records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this: &lt;STRONG&gt;ExecuteSQLRecord -&amp;gt; QueryRecord -&amp;gt; PutDatabaseRecord&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ExecuteSQLRecord - Query and stream records from the source database&lt;/LI&gt;&lt;LI&gt;QueryRecord - convert the records from the source to target format. (e.g. SELECT id, value FROM FLOWFILE)&lt;/LI&gt;&lt;LI&gt;PutDatabaseRecord - insert the converted records into the target database.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;André&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 21:02:38 GMT</pubDate>
    <dc:creator>araujo</dc:creator>
    <dc:date>2022-02-08T21:02:38Z</dc:date>
    <item>
      <title>NiFi - How can i change ReplacementValue on ReplaceText ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-How-can-i-change-ReplacementValue-on-ReplaceText/m-p/335799#M232035</link>
      <description>&lt;P&gt;I'm using ExecuteSQL,SplitAvro,ConvertAvroToJSON,EvaluateJsonPath,ReplaceText,ExecuteSQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to replace the content in the flowfile using replaceText processor.&lt;/P&gt;&lt;P&gt;Now, i can replace like this. -&amp;gt; INSERT INTO values (${id},'${name}') . ReplaceText process like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;INSERT into x values(1,'xx')&lt;/P&gt;&lt;P&gt;INSERT into x values(2,'yy')&lt;/P&gt;&lt;P&gt;INSERT into x values(3,'zz')&lt;/P&gt;&lt;P&gt;I'm sending INSERT query for each line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i want to send executesql process like this&lt;/P&gt;&lt;P&gt;INSERT INTO x&amp;nbsp; values (1,'xx'),(2,'yy'),(3,'zz')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 13:32:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-How-can-i-change-ReplacementValue-on-ReplaceText/m-p/335799#M232035</guid>
      <dc:creator>mstfo</dc:creator>
      <dc:date>2022-02-08T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - How can i change ReplacementValue on ReplaceText ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-How-can-i-change-ReplacementValue-on-ReplaceText/m-p/335827#M232039</link>
      <description>&lt;P&gt;The flow that you are trying to implement is not very efficient and it's hard to achieve what you want to do in that way.&lt;/P&gt;&lt;P&gt;You should try to refactor it using record-based processors, which is much simpler and more efficient to handle a large number of records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this: &lt;STRONG&gt;ExecuteSQLRecord -&amp;gt; QueryRecord -&amp;gt; PutDatabaseRecord&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ExecuteSQLRecord - Query and stream records from the source database&lt;/LI&gt;&lt;LI&gt;QueryRecord - convert the records from the source to target format. (e.g. SELECT id, value FROM FLOWFILE)&lt;/LI&gt;&lt;LI&gt;PutDatabaseRecord - insert the converted records into the target database.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 21:02:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-How-can-i-change-ReplacementValue-on-ReplaceText/m-p/335827#M232039</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-02-08T21:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi - How can i change ReplacementValue on ReplaceText ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-How-can-i-change-ReplacementValue-on-ReplaceText/m-p/335988#M232088</link>
      <description>&lt;P&gt;I used MergeContent and i solved my problem. Thanks !&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:06:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-How-can-i-change-ReplacementValue-on-ReplaceText/m-p/335988#M232088</guid>
      <dc:creator>mstfo</dc:creator>
      <dc:date>2022-02-10T15:06:05Z</dc:date>
    </item>
  </channel>
</rss>

