<?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: Query slow performance sys_databases.m_backup_catalog in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467372#M4266002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like this might actually turn out to be an issue with the version we were on. The VM's that were built we used an early version SPS 11.&amp;nbsp; Basis guys patched yesterday afternoon and so far no change in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to get the patch details but will update this thread with that information if it solves the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the responses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 19:44:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-02-12T19:44:50Z</dc:date>
    <item>
      <title>Query slow performance sys_databases.m_backup_catalog</title>
      <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaq-p/11467366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are in the process of deploying Hana and have been playing around with a couple of VM's just to get familiar with HANA before we get our real hardware in a few weeks. I realize that the VM does not meet specs etc but I am not sure this is related to that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The VM I am working on is a multi-tenant install with 3 tenants. Version 1.00.110 on Suse Linux 3.0.101. The tenants are essentially empty other than the few tables we have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noticed something today that I was not expecting when running a query against sys_databases.m_backup_catalog. The actual query I ran is more complex than the one below but the one below shows the issue. It is taking 7 minutes to query sys_databases.m_backup_catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I query the tenant's m_backup_catalog directly it runs in &amp;lt; 1 second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that expected behavior? I understand it would be slower because of the combined nature of the sys_databases&lt;/P&gt;&lt;P&gt;view but 7 minutes seems excessive. I have not spent a lot of time looking at the explain plan or anything yet&lt;/P&gt;&lt;P&gt;was just curious if this was to be expected. Part of what lead to this was that using the backup and recovery console&lt;/P&gt;&lt;P&gt;from SYSTEMDB to look at one of the tenants exhibits the same behavior where it takes many minutes for the gui to refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The commands below were run consecutively and used the time command just to show the elapsed time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more ./count1.sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select count(*) from sys_databases.m_backup_catalog&lt;/P&gt;&lt;P&gt;&amp;nbsp; where database_name = 'SCOTT';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time hdbsql -d systemdb -u system -p XXXXXXXXXXXXXX -I ./count1.sql -o /tmp/count1.out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; real&amp;nbsp;&amp;nbsp;&amp;nbsp; 7m48.532s&lt;/P&gt;&lt;P&gt;&amp;nbsp; user&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m0.000s&lt;/P&gt;&lt;P&gt;&amp;nbsp; sys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m0.008s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more /tmp/count1.out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; COUNT(*)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 895&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more ./count2.sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select count(*) from m_backup_catalog;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time hdbsql -d scott -u system -p XXXXXXXXXXXXX -I ./count2.sql -o /tmp/count2.out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; real&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m0.055s&lt;/P&gt;&lt;P&gt;&amp;nbsp; user&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m0.004s&lt;/P&gt;&lt;P&gt;&amp;nbsp; sys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0m0.008s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more /tmp/count2.out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(*)&lt;/P&gt;&lt;P&gt;895&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeating the first query results in slightly better time of 5 minutes but still a lot slower than the one directly in the tenant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 21:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaq-p/11467366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-25T21:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query slow performance sys_databases.m_backup_catalog</title>
      <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467367#M4265997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7m is high value for HANA system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your hw is certified hw by SAP. Check your hw from below list first.&lt;/P&gt;&lt;P&gt;&lt;A href="https://global.sap.com/community/ebook/2014-09-02-hana-hardware/enEN/appliances.html" title="https://global.sap.com/community/ebook/2014-09-02-hana-hardware/enEN/appliances.html"&gt;Certified SAP HANA&amp;amp;amp;reg; Hardware Directory&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can run hwcct python script for HW check like below picture to see the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;python HanaHwCheck.py&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/874516" width="450" /&gt;&lt;/P&gt;&lt;P&gt;If these two are okey then I would check performance tab of the HANA Studio for the execution of this sql script. I could open SQL trace also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuksel AKCINAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 22:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467367#M4265997</guid>
      <dc:creator>yakcinar</dc:creator>
      <dc:date>2016-01-25T22:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query slow performance sys_databases.m_backup_catalog</title>
      <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467368#M4265998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The long runtime is weird and I don't have a good guess at hand that could explain it. Instead I would recommend you to check the thread activities of the time when the query runs. You can e.g. evaluate it historically using &lt;EM&gt;SQL: "HANA_Threads_ThreadSamples_FilterAndAggregation"&lt;/EM&gt; available via SAP Note 1969700.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 07:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467368#M4265998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-26T07:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query slow performance sys_databases.m_backup_catalog</title>
      <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467369#M4265999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested similar queries based on your example on our system that is SAP Certified and we have more than 15 tenants on it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My queries fetch more than 10,000 rows and it takes 100 ms-150 ms so it is definitely not an issue in the way the data is being queried, some thing very unique with your setup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially SYS_DATABASES is a schema in the SYSTEMDB tenant so this query is definitely not trying to access the tenants underneath so it is not expected to take any more than a few 100 milli seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467369#M4265999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-11T22:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query slow performance sys_databases.m_backup_catalog</title>
      <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467370#M4266000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this. We are getting our real hardware any day now so it will be interesting to see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the original post we actually realized that after a restart of the system that particular query runs in milliseconds and gets progressively slower over time eventually reaching that 5-6 minutes time until we restart the Hana system again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basis team has said they are having other issues as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will update this thread just for completeness after we get the real hardware and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467370#M4266000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-12T14:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query slow performance sys_databases.m_backup_catalog</title>
      <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467371#M4266001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It took only 1.35 sec for me to fetch these details. Yes, I belive there should be some issue with the system. Hopefully, you will get the result in ms in your new hardware &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467371#M4266001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-12T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query slow performance sys_databases.m_backup_catalog</title>
      <link>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467372#M4266002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like this might actually turn out to be an issue with the version we were on. The VM's that were built we used an early version SPS 11.&amp;nbsp; Basis guys patched yesterday afternoon and so far no change in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to get the patch details but will update this thread with that information if it solves the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the responses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 19:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-slow-performance-sys-databases-m-backup-catalog/qaa-p/11467372#M4266002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-12T19:44:50Z</dc:date>
    </item>
  </channel>
</rss>

