Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

Table and View detection extremely slow

$
0
0

I use hana trial for a PoC to create a db admin tool.

 

Following command tries to get all readable views and tables:

 

SELECT * FROM (SELECT  t.schema_name    table_schem

       ,t.table_name

       ,'TABLE' table_type

       ,t.comments remarks

       ,null    text

  FROM tables t

  WHERE t.schema_name NOT IN ('SYS', '_SYS_STATISTICS', '_SYS_REPO', '_SYS_BI', 'HCP')

  UNION ALL

  SELECT v.schema_name table_schem

       ,v.view_name    table_name

       ,'VIEW'   table_type

       ,v.comments    remarks

       ,v.definition     text

  FROM views v

  WHERE v.schema_name NOT IN ('SYS', '_SYS_STATISTICS', '_SYS_REPO', '_SYS_BI', 'HCP'))

 

 

The execution needs 80 seconds and longer....

It's horrible and we can't develop tools for HANA with such bad performance.

 

Are there any hints to reduce execution time to some millis?


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>