<?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: How to improve django template search performance in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145059#M40395</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Are you sure it's the django causing the delays on the page ? &lt;/P&gt;

&lt;P&gt;Can you try running your search in a non-django environment ? &lt;/P&gt;

&lt;P&gt;Or maybe split the search into many small parts and start adding them up until you get to the part that makes it all slow down at least that way you would isolate your problem and eventually figure out whats causing all that delay.&lt;/P&gt;</description>
    <pubDate>Mon, 26 May 2014 18:27:35 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2014-05-26T18:27:35Z</dc:date>
    <item>
      <title>How to improve django template search performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145055#M40391</link>
      <description>&lt;P&gt;Created a django app to display some transaction history detail in a tabular format.&lt;BR /&gt;
But when the template is accessed from the UI it takes almost 20-25 minutes for displaying search query result. Need help in improving performance of the search query and Django template.&lt;/P&gt;

&lt;P&gt;Here is saved search code for reference.&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
[top_zip_by_amount]&lt;BR /&gt;
alert.digest_mode = True&lt;BR /&gt;
alert.suppress = 0&lt;BR /&gt;
alert.track = 0&lt;BR /&gt;
cron_schedule = 1 * * * * *&lt;BR /&gt;
enableSched = 1&lt;BR /&gt;
search = index=transaction_history  | &lt;BR /&gt;
            spath input=Item | &lt;BR /&gt;
            rename HistoryItem.a:TransactionDetails.a:StoreId AS StoreNumber,  HistoryItem.a:TotalAmount AS Amount | &lt;BR /&gt;
            fields StoreNumber,Amount  | &lt;BR /&gt;
            lookup store_location StoreNumber as StoreNumber OUTPUT PostalCode | &lt;BR /&gt;
            table PostalCode StoreNumber Amount|&lt;BR /&gt;
            stats Sum(Amount) as Total1 count(StoreNumber) as TransactionCount by PostalCode StoreNumber|&lt;BR /&gt;
            fields PostalCode,StoreNumber,TransactionCount, Total1|&lt;BR /&gt;
            stats count(StoreNumber) as StoreCount sum(Total1) as TotalAmount by PostalCode|&lt;BR /&gt;
            fields PostalCode,StoreCount,TotalAmount|&lt;BR /&gt;
            sort TotalAmount desc&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Anyone who can guide me on this ?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145055#M40391</guid>
      <dc:creator>vgnulinux</dc:creator>
      <dc:date>2020-09-28T16:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve django template search performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145056#M40392</link>
      <description>&lt;P&gt;First you should check the job inspector for one of those searches to verify if it's the search job being slow or the django-based page rendering slowly.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 19:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145056#M40392</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-28T19:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve django template search performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145057#M40393</link>
      <description>&lt;P&gt;thanks martin, your advice to optimize search using search inspector did help us to improve performance of our web page in Django&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2014 11:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145057#M40393</guid>
      <dc:creator>vkalgath</dc:creator>
      <dc:date>2014-05-26T11:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve django template search performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145058#M40394</link>
      <description>&lt;P&gt;Great. Any other issues left?&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2014 16:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145058#M40394</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-26T16:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve django template search performance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145059#M40395</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Are you sure it's the django causing the delays on the page ? &lt;/P&gt;

&lt;P&gt;Can you try running your search in a non-django environment ? &lt;/P&gt;

&lt;P&gt;Or maybe split the search into many small parts and start adding them up until you get to the part that makes it all slow down at least that way you would isolate your problem and eventually figure out whats causing all that delay.&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2014 18:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-improve-django-template-search-performance/m-p/145059#M40395</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2014-05-26T18:27:35Z</dc:date>
    </item>
  </channel>
</rss>

