<?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: ExecuteSQL reads data from database an infinite number of times in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExecuteSQL-reads-data-from-database-an-infinite-number-of/m-p/228132#M79955</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/83297/vscherbakov.html" nodeid="83297" target="_blank"&gt;@Vladislav Shcherbakov&lt;/A&gt;&lt;P&gt;You can change the schedule of ExecuteSql Processor &lt;/P&gt;&lt;P&gt;Right Click --&amp;gt; Configure --&amp;gt; Scheduling tab&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77836-executesql.png" style="width: 1373px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15230i83DFBA29CD124CFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77836-executesql.png" alt="77836-executesql.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Executesql either trigger based on Timer driven (or) cron driven, as shown in the above RunSchedule 1111111110 sec means the processor trigger once 1111111110 sec. you can use like 1 min,1 hr instead of specifying in sec.&lt;/P&gt;&lt;P&gt;Cron driven use &lt;A href="http://www.cronmaker.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt; link to make your cron expression then change the scheduling strategy to cron driven and keep your cron expression in Run Schedule.&lt;/P&gt;&lt;P&gt;ExecuteSql processor doesn't store the state if you want to incrementally pull the data then use either &lt;A href="https://community.hortonworks.com/articles/51902/incremental-fetch-in-nifi-with-querydatabasetable.html" target="_blank" rel="nofollow noopener noreferrer"&gt;incremental fetch using QueryDatabaseTable&lt;/A&gt; (or) &lt;A href="https://community.hortonworks.com/questions/61794/how-to-fetch-rows-from-a-table-in-parallel-when-ni.html" target="_blank" rel="nofollow noopener noreferrer"&gt;Generate Table Fetch&lt;/A&gt; processors as these processors stores the state based on max value column provided and pulls only the changes made after the store state.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 01:12:10 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T01:12:10Z</dc:date>
    <item>
      <title>ExecuteSQL reads data from database an infinite number of times</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExecuteSQL-reads-data-from-database-an-infinite-number-of/m-p/228131#M79954</link>
      <description>&lt;P&gt;Processor reads data from database an infinite number of times.&lt;BR /&gt;How can I limit this so that he reads the data only once and does not repeat?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 18:32:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExecuteSQL-reads-data-from-database-an-infinite-number-of/m-p/228131#M79954</guid>
      <dc:creator>vscherbakov</dc:creator>
      <dc:date>2018-06-27T18:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteSQL reads data from database an infinite number of times</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExecuteSQL-reads-data-from-database-an-infinite-number-of/m-p/228132#M79955</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/83297/vscherbakov.html" nodeid="83297" target="_blank"&gt;@Vladislav Shcherbakov&lt;/A&gt;&lt;P&gt;You can change the schedule of ExecuteSql Processor &lt;/P&gt;&lt;P&gt;Right Click --&amp;gt; Configure --&amp;gt; Scheduling tab&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77836-executesql.png" style="width: 1373px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15230i83DFBA29CD124CFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77836-executesql.png" alt="77836-executesql.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Executesql either trigger based on Timer driven (or) cron driven, as shown in the above RunSchedule 1111111110 sec means the processor trigger once 1111111110 sec. you can use like 1 min,1 hr instead of specifying in sec.&lt;/P&gt;&lt;P&gt;Cron driven use &lt;A href="http://www.cronmaker.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt; link to make your cron expression then change the scheduling strategy to cron driven and keep your cron expression in Run Schedule.&lt;/P&gt;&lt;P&gt;ExecuteSql processor doesn't store the state if you want to incrementally pull the data then use either &lt;A href="https://community.hortonworks.com/articles/51902/incremental-fetch-in-nifi-with-querydatabasetable.html" target="_blank" rel="nofollow noopener noreferrer"&gt;incremental fetch using QueryDatabaseTable&lt;/A&gt; (or) &lt;A href="https://community.hortonworks.com/questions/61794/how-to-fetch-rows-from-a-table-in-parallel-when-ni.html" target="_blank" rel="nofollow noopener noreferrer"&gt;Generate Table Fetch&lt;/A&gt; processors as these processors stores the state based on max value column provided and pulls only the changes made after the store state.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:12:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExecuteSQL-reads-data-from-database-an-infinite-number-of/m-p/228132#M79955</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T01:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteSQL reads data from database an infinite number of times</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExecuteSQL-reads-data-from-database-an-infinite-number-of/m-p/228133#M79956</link>
      <description>&lt;P&gt;Perfect! Thanks!&lt;BR /&gt;I'll try QueryDatabaseTable for it. It'll be better!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 21:25:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ExecuteSQL-reads-data-from-database-an-infinite-number-of/m-p/228133#M79956</guid>
      <dc:creator>vscherbakov</dc:creator>
      <dc:date>2018-06-27T21:25:26Z</dc:date>
    </item>
  </channel>
</rss>

