<?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 Re: SQL DBX Query is taking 500 seconds to execute the query in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-DBX-Query-is-taking-500-seconds-to-execute-the-query/m-p/567307#M75151</link>
    <description>&lt;P&gt;Firstly - do I understand correctly from your log that you're returning several hundred thousand records from db query and then do a search filtering it down to 27 records? If so, that's kinda... unwise.&lt;/P&gt;&lt;P&gt;Secondly - what's your memory status? (free, used, swap and so on. Are you not swapping out?&lt;/P&gt;&lt;P&gt;Thirdly - if you do a "normal" query using a bare cli client - does it also take that long? In short - are you sure it's splunk's fault?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 19:03:21 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-09-16T19:03:21Z</dc:date>
    <item>
      <title>SQL DBX Query is taking 500 seconds to execute the query</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-DBX-Query-is-taking-500-seconds-to-execute-the-query/m-p/567304#M75150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using dbxquery to fetch around 800000 data from database into splunk&lt;/P&gt;&lt;P&gt;| dbxquery connection=x query="select * from table002 " shortnames=t maxrows=800000&lt;/P&gt;&lt;P&gt;The above query is taking around 500 seconds.The default maxrow is 1000 in dbxquery.py script.How do reduce the time taken without impaction performance of my server?&lt;/P&gt;&lt;P&gt;P.S&amp;nbsp;| noop search_optimization=false This doesnt improve my search time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashwini008_0-1631817021695.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16015i667AC6528B1BE1E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashwini008_0-1631817021695.png" alt="Ashwini008_0-1631817021695.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 18:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-DBX-Query-is-taking-500-seconds-to-execute-the-query/m-p/567304#M75150</guid>
      <dc:creator>Ashwini008</dc:creator>
      <dc:date>2021-09-16T18:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL DBX Query is taking 500 seconds to execute the query</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-DBX-Query-is-taking-500-seconds-to-execute-the-query/m-p/567307#M75151</link>
      <description>&lt;P&gt;Firstly - do I understand correctly from your log that you're returning several hundred thousand records from db query and then do a search filtering it down to 27 records? If so, that's kinda... unwise.&lt;/P&gt;&lt;P&gt;Secondly - what's your memory status? (free, used, swap and so on. Are you not swapping out?&lt;/P&gt;&lt;P&gt;Thirdly - if you do a "normal" query using a bare cli client - does it also take that long? In short - are you sure it's splunk's fault?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 19:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-DBX-Query-is-taking-500-seconds-to-execute-the-query/m-p/567307#M75151</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-16T19:03:21Z</dc:date>
    </item>
  </channel>
</rss>

