<?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>topic DB Connect Batch Mode in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/507777#M62376</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;I have enabled the batch mode for a date field with below query in DB Connect :&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM SCHEMANAME.TABLENAME&lt;/P&gt;&lt;P&gt;WHERE Termination_date &amp;gt;= from_unixtime(unix_timestamp()-1*60*60*24, 'yyyy-MM-dd')&lt;/P&gt;&lt;P&gt;ORDER BY Termination_date DESC;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Table doesnt have any primary key and hence making using of batch mode in db connect to retrieve all the data from the table when comparing with one of the date fileds in the table "Termination_date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table generates 5000 rows in a day. Hence I have given a condition to schedule the script every 300 seconds and retrieve 300 rows .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question::&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Will it retrieve last 300 rows of the day or it will keep on ingesting first 300 rows from the table into splunk (I have given DESC in the sql query).&lt;/P&gt;&lt;P&gt;Is there any other solution to get the data by using the same date field as there is no primary key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 08:12:22 GMT</pubDate>
    <dc:creator>jugalkinariwala</dc:creator>
    <dc:date>2020-07-07T08:12:22Z</dc:date>
    <item>
      <title>DB Connect Batch Mode</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/507777#M62376</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;I have enabled the batch mode for a date field with below query in DB Connect :&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM SCHEMANAME.TABLENAME&lt;/P&gt;&lt;P&gt;WHERE Termination_date &amp;gt;= from_unixtime(unix_timestamp()-1*60*60*24, 'yyyy-MM-dd')&lt;/P&gt;&lt;P&gt;ORDER BY Termination_date DESC;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Table doesnt have any primary key and hence making using of batch mode in db connect to retrieve all the data from the table when comparing with one of the date fileds in the table "Termination_date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table generates 5000 rows in a day. Hence I have given a condition to schedule the script every 300 seconds and retrieve 300 rows .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question::&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Will it retrieve last 300 rows of the day or it will keep on ingesting first 300 rows from the table into splunk (I have given DESC in the sql query).&lt;/P&gt;&lt;P&gt;Is there any other solution to get the data by using the same date field as there is no primary key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 08:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/507777#M62376</guid>
      <dc:creator>jugalkinariwala</dc:creator>
      <dc:date>2020-07-07T08:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Batch Mode</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/507846#M62383</link>
      <description>DB Connect batch mode will re-read the same data every time.&lt;BR /&gt;To retrieve the most recent rows, use a rising column. The table does not need a primary key - it just needs a column that has a contuously-increasing value that Splunk can use to mark its place in the table.</description>
      <pubDate>Tue, 07 Jul 2020 13:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/507846#M62383</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-07T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Batch Mode</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/508691#M62449</link>
      <description>&lt;P&gt;Rising column is having some issues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If table generates 1000 rows every 10 mins and as I am using Batch mode , shall I go with ASC or DESC to get the recently generated rows from the table ?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 16:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/508691#M62449</guid>
      <dc:creator>jugalkinariwala</dc:creator>
      <dc:date>2020-07-12T16:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect Batch Mode</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/508698#M62450</link>
      <description>Don't use batch mode to get recent rows because batch mode reads the entire table.&lt;BR /&gt;If the values of the rising column increase continually (as most do) then you want ASC.</description>
      <pubDate>Sun, 12 Jul 2020 17:15:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-Batch-Mode/m-p/508698#M62450</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-12T17:15:20Z</dc:date>
    </item>
  </channel>
</rss>

